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 do you mean by checked exceptions?
How do you end a program?
What is not object oriented programming?
How to display all the prime numbers between 1 and 100
What is an arraylist in java?
What are checked exceptions?
What is a blocking method in Java?
What is the output of the below java program?
How do you make a thread in java?
How do you use wildcards?
What is get () in java?
What is the importance of hashcode() and equals() methods?
What is the difference between object oriented programming language and object based programming language?
Why do people says “java is robust”?
What is difference between add() and addelement() in vector?