Answer Posted / ranganathkini
When frames or containers are designed using layout
managers, each layout manager imposes certain rules on how
the components within the container must be placed and
sized. Components cannot impose their required size on the
layout manager hence they use the "preferred size" attribute
to suggest to the layout manager of what wud be the ideal
size/location to display them.
The layout manager looks at the preferred size requested by
the components while laying them out in the container. If
the preferred size can be given to the component without
violating the layout manager's rules then the layout manager
uses the preferred size for that component.
| Is This Answer Correct ? | 37 Yes | 14 No |
Post New Answer View All Answers
What do you understand by the term singleton?
What is static import in java?
what is the significance of listiterator in java?
What is __ init __ functions?
How are variables stored?
How can you add and remove nodes in jtree?
What is difference between array and arraylist in java?
What is the main use of java?
What are the different tags provided in jstl?
What is the use of beaninfo?
What is the full meaning of java?
What is a char in java?
Which software is used for java programming?
How do I run java on windows?
What is preparedstatement in java?