Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


To set the position and size of a component, which methods
are used?

Answers were Sorted based on User's Feedback



To set the position and size of a component, which methods are used?..

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

To set the position and size of a component, which methods are used?..

Answer / ravikiran

setBounds

Is This Answer Correct ?    8 Yes 3 No

To set the position and size of a component, which methods are used?..

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

Post New Answer



More Core Java Interview Questions

Difference between a class and an object?

0 Answers  


How do you declare a variable?

0 Answers  


Why do we use string?

0 Answers  


What is application system?

0 Answers  


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

0 Answers  






Is class is a data type?

0 Answers  


What is the latest version of java?

0 Answers  


What is meant by JVM ?

6 Answers  


How do you sort arraylist in descending order?

0 Answers  


What about interrupt() method of thread class ?

0 Answers  


What are Transient and Volatile Modifiers?

3 Answers   SAP Labs, TUP Manila,


What is thread start?

0 Answers  






Categories