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 are keywords and reserved words in java?
What is token in java?
What is printwriter in java?
What is a class variable?
Is there any sort function in java?
What is collection class in java?
Can we use string in the switch case?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
Difference between a process and a program?
Define reflection.
What is the final class modifier?
What is the meaning of flag day?
What is application system?
What are advantages of using Java?s layout managers than windowing systems?
What does nullpointerexception mean?