posted 22 years ago
I would like to hear confirmation or denial of the following:
For AWT
a)setSize doesn't work for a component to be added to a container unless is overriden and implemented to supply the value that getPreferred returns.
b)setSize works for Containers. But if the size requested is near the needed one to lay out its components, or less than that, it is ignored.
c) a and b are true regardless the LayoutManager is Border/Flow/Card/Grid/GridBag
It follows an example to play with it and to help to answer the previous questions
SCJP2. Please Indent your code using UBB Code