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
Can arraylist contain null values?
What is the difference between jdk, jre, and jvm?
how we can create packages in java?
What is functional interface in java example?
Can interface be private in java?
What are the types of java?
What is difference between core java and java ee?
How do singleton patterns work?
What is double word?
Give few examples of final classes defined in Java API?
Where is stringbuffer stored?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is autoboxing in java?
What is the role of garbage collector in java?
What is java util list?