CardLayout
The CardLayout manager arranges componentsin a queue of cards. You can only see one card ata time. To construct a CardLayout, simply usethe constructor CardLayout().
To add a component in the CardLayout container, use the following method:
void add(Component com, String name)