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 are decalarations?
What is an arraylist in java?
What is the main use of generics in java?
What is qualitative variable?
What is an exception in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What does math floor () do?
what are synchronized methods and synchronized statements? : Java thread
Is an empty arraylist null?
What is difference between classpath and path variables in java?
What is a parameter in a function?
Why are lists ordered in java?
What is argument in java?
Difference between nested and inner classes ?
Why java is call by value?