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
How do you sort in java?
Can we convert integer to string in java?
What is string intern in java?
What is the difference between replace and replace all?
Is java good for beginners?
How do you generate random numbers in java?
What is the collections api in java programming?
How many tetrahedral voids are there in bcc?
Explain about exception propagation?
Does java set allow duplicates?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
a thread is runnable, how does that work? : Java thread
What are different types of constants?
How do you represent a space in regex java?
What is java beans?