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 math exp in java?
What does percent mean in java?
How java enabled high performance?
Explain the access modifiers for a class, method and variables?
What is slash r?
Is it possible to write a regular expression to check if string is a number?
How do you use compareto in java?
Explain differences between collection api and stream api?
Differentiate between stringbuffer and string?
List the different types of classloaders in java.
What is the point of java?
Can we assign integer value to char in java?
How does indexof work?
What is singletonlist in java?
What advantage do java's layout managers provide over traditional windowing systems?