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 |
Can you use abstract and final both with a method?
wat is class level lock and object level lock
How do you call a reference in java?
whether java is fully object oriented language or partially object oriented language
What is the final keyword?
Why Java is not purely object oriented?
50 Answers Elitecore, Persistent, Reliance, Wipro,
What is the full meaning of java?
What is the this keyword?
What happens when I use / and % with a negative numerator?
Why declare Main() method as a static in java ?
Why do people says “java is robust”?
Why java is call by value?