i've got a container, containing a menubar and a cardlayout. the cardlayout holds a couple of 'cards' (JPanels).
these JPanels vary in size (one contains only 2 buttons), but i don't want to have to use setSize() everytime i switch from card to card.
shouldn't the container frame dynamically adjust its size so that each JPanel is displayed appropriately? (i.e. the smaller JPanel would cause the frame to be smaller, just enough for all the JPanel's components to be displayed etc)
