Size of components in CardLayout
Posted on 1997-05-12
I have several containers held by a CardLayout. Each of those contains a component the layout of which depends on its size. I have two problems:
All containers except the one initially showed claims their width is 0, even when they are switched to later on, that is, showed in the CardLayout. Therefore the component spoken of doesn’t lay out itself properly in those containers.
I don’t really know which method to overload to make it tell the component to reorganize its layout when the main container (the entire applet in my case) is resized. Is it resize()? Validate()?
Can anyone help me out?