To set the position and size of a component, which methods
are used?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pkr_reddy
to set the position is used setLayout accepting the argument
as layout object.
ex:setLayout(layout lobject);
in order to set the component sze there is no method that is
default set the size by layout manazer .
Is This Answer Correct ? | 5 Yes | 4 No |
Which object oriented concept is achieved by using overloading and overriding?
What is void class in java?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
Name few "optional" classes introduced with java 8 ?
when there is a need of jvm then how we can say that java is a platform independent language?
what is translator and it types
Is null a string?
What is final access modifier in java?
What are the java ide’s?
How do you replace all in word?
What is a generic data type?
Can I have constructor in Interface?