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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

java program with complete 4 oops concepts implemented example

2720


What is meant by nested loop?

532


What are the different ways of creating thread?

561


What is difference between static and final?

546


What is hash table in java?

484






What is a default method?

507


Explain restrictions for using anonymous inner classes?

570


What is variable argument in java?

549


Why can't we use static class instead of singleton?

492


why we use merge option in hybernate pls give a ex snippet

1442


Is alive in java?

494


Why arraylist is used in java?

535


What is the difference between declaration and definition in java?

504


What do u mean by variable?

554


What is the difference between an inner class and a sub-class?

501