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 is the flag in java?
Define packages in java?
Define an enumeration?
Can a constructor call another constructor?
What interface is extended by awt event listeners?
What’s the difference between the methods sleep() and wait()?
What is variable explain with example?
What is ph and buffers?
How to restrict a member of a class from inheriting by its sub classes?
What does it mean that a class or member is final?
What are the legal operands of the instanceof operator?
What is void data type?
Can we synchronize static methods in java?
How do you add an arraylist to an array in java?
How do you delete a list in java?