Normally you add a panel with its own layout manager to each card.
Each card should have some means for navigating between cards. The
AWT does not provide one. Finally note that you can add the same
component to more than one card. This is useful, for example, for
creating a Choice
menu with the names of all the cards
as a navigation aid.
The following five CardLayout
methods allow you to
switch cards. In all cases you must specify the container inside of
which you're flipping. This can be the applet, the window, or the
panel that's arranged with this card layout.
public void first(Container parent)
public void next(Container parent)
public void previous(Container parent)
public void last(Container parent)
public void show(Container parent, String name)