K
Knute Johnson
I've got a JFrame app that has several components laid out with
GridBagLayout. One of the components is a JPanel that I draw an image
on. This component occaisionally can change size. After I resize my
JPanel, I invalidate it, repaint it and then call pack() on the JFrame.
Is there a way to cause the JFrame to relayout the components but not
shrink to fit the layout as it does with pack() but still grow if necessary?
Thanks,
GridBagLayout. One of the components is a JPanel that I draw an image
on. This component occaisionally can change size. After I resize my
JPanel, I invalidate it, repaint it and then call pack() on the JFrame.
Is there a way to cause the JFrame to relayout the components but not
shrink to fit the layout as it does with pack() but still grow if necessary?
Thanks,