Nested BorderLayout inside BoxLayout

From: Marco (nospam_at_please.org)
Date: 05/29/04


Date: Sat, 29 May 2004 12:47:42 GMT

I'm creating a gui like this

--------------------------
| Choose file panel |
--------------------------
| VericalGlue |
--------------------------
| Options panel |
--------------------------
| OK/Cancel buttons pane|
--------------------------

where

[Choose file panel] uses BorderLayout
[Options panel] uses GridLayout
[OK/cancel] uses BoxLayout along X axis

and the main frame uses BoxLayout along Y axis.

The problem is that, then I resize the window,
the vertical glue has no effect, and the height of the BorderLayout
panel (file selection) is changed to adapt to the Frame height.

I want the BorderLayout panel to have always the same height
(automatically calculated upon the height of its elements), and the
vertical glue to fill the void when resizing the window.

How could I accomplish this? Why does BoxLayout change the height of
panes and doesn't use the vertical glue?

Thanks in advance,
Marco


Quantcast