Hola Colin,

Colin> It's worth pointing out as well that when using GridLayout, setting the
Colin> size of your components has no effect as they will all be of a uniform
Colin> size and will grow/shrink as necessary to fill the available space.

In which case you can mix new layouts if it�s not a desired behaviour.

--------------------------------------
|                  | ----------------- |
|                  ||  -------------- ||
|                  || |    JLabel   | ||
|                  ||  -------------- ||
|                  || |    JLabel   | ||
|                  ||  -------------- ||
|                  || |    JLabel   | ||
|                  ||  -------------- ||
|                  || |    JLabel   | ||
|                  ||  -------------- ||
|                  || |    JLabel   | ||
|                  ||  -------------- ||
|                  ||-----------------||
|                  ||                 ||
|                  ||-----------------||
 --------------------------------------

 Put the JPanel with the labels inside a JPanel with BorderLayout and
 the North Contraint. Put that JPanel inside another JPanel with
 BorderLayout and the East Constraint, that way the labels will remain
 the same size, that is their PreferredSize.

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to