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 does || || mean in math?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What about static nested classes in java?
What is data structure in java?
What is the difference between final, finally and finalize()?
What is anti pattern in java?
What is not object oriented programming?
What methodology can be employed to locate substrings inside a string?
What is the difference between Array and Hash Table?
Why are constructors used?
What are conditionals and its types?
What is internal variable?
How does list work in java?
What is literal example?
What is a generic type?