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
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Differentiate between array list and vector in java.
What are thread priorities and importance of thread priorities in java?
what is the significance of listiterator in java?
Can set contain duplicates?
Can we override private constructor in java?
What flag up means?
Which is bigger float or double?
What advantage do java's layout managers provide over traditional windowing systems?
How many threads does a core java have?
How to change the priority of thread or how to set the priority of thread?
What is difference between path and classpath variables?
What is the meaning of variables in research?
What is the java project architecture?
What are selection structures?