CardLayout

CardLayout provides a way to manage two or more components that occupy the same display area. Conceptually, each component is like a card in a deck, where all cards are the same size and only the top card is visible at any time.

At design time in the Form Editor, CardLayout is displayed as a JTabbedPane. This enables you to switch between cards by clicking their tabs while you are designing the form. At runtime, all the cards share the same display space. (If you want your form to have tabbed panes at runtime, use the JTabbedPane component.)

See also
Setting the Layout Manager

Legal Notices