hi,
I have a similar problem, so I am not going to start a new
thread.
I call pack() on my JFrame containing to JScrollPanes and some other components. I have set the preferred sizes of both scrollpanes' viewports and I have set the minimum size of both, as well.
When the application starts, pack will compute the size of the JFrame to show the scrollpanes with their preferred sizes. But when I resize the frame in height (width is not that delicate), the scrollpanes will be shrinked to their minimum sizes. They aren't scaled to fill in the space that is left in the JFrame. It's either preferred size or minimum size.
The one scrollPane that is the more important is inside a JPanel with a CardLayout. I add this panel to the main container setting its weighty to 1 (GridBagLayout). but that doesn't help.
any ideas?
thanks
Chantal