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 methods are used to get and set the text label displayed by a button object?
What does exp mean in math?
Explain the selection sort algorithm and state its time complexity?
Difference between default and protected access specifiers?
What is a “stateless” protocol ?
What is the default size of set in java?
what is deadlock? : Java thread
What is array and arraylist in java?
What is a method declaration?
Can we nested try statements in java?
How can we pass argument to a function by reference instead of pass by value?
What are the two ways to create a thread?
What is integer valueof?
Why are the objects immutable in java?
What is a programming object?