To set the position and size of a component, which methods
are used?
Answer Posted / ranjith
setBounds
Set the size and location relative to the parent's upper
left corner, in pixels, of the component. The four int
arguments specify x, y, width, and height, in that order.
Use these methods to position and size a component when you
are not using a layout manager.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is final keyword?
Write a program to search a number in the given list of numbers.
Give us a program to check for parenthesis matching using stack.
What is string pool?
Which class cannot be a subclass in java?
Can an object subclass another object?
State the merge-sort principle and its time complexity.
What is the method to declare member of a class static?
Explain when classnotfoundexception will be raised ?
what is optional in java 8?
What is the difference between private & public & friendly classes?
What does this mean java?
What is meant by interface?
What is a variable and constant?
What is join () in java?