S
Sam Takoy
Hi,
I've written a simple layout manager that's similar to BoxLayout excepts
deals with preferredSizes a little differently.
It all works well when use the mouse to expand the parent frame.
Everything gets re-laid out perfectly. However, when I shrink the frame,
my JPanel's stay their largest expanded size.
I monitor the layoutContainer() method and I notice that it gets called
on the contentPane, but not on any of its children. What's going on
here? Is this something that I control or is the system in charge of
calling layoutContainer()?
Many thanks in advance,
Sam
I've written a simple layout manager that's similar to BoxLayout excepts
deals with preferredSizes a little differently.
It all works well when use the mouse to expand the parent frame.
Everything gets re-laid out perfectly. However, when I shrink the frame,
my JPanel's stay their largest expanded size.
I monitor the layoutContainer() method and I notice that it gets called
on the contentPane, but not on any of its children. What's going on
here? Is this something that I control or is the system in charge of
calling layoutContainer()?
Many thanks in advance,
Sam