JPanel
with a CardLayout
layout manager, resulting in a "tabbed pane without tabs".
|
CardLayout
's
by selecting the aproppriate commands from a card panel's
.
JComboBox
, JList
or JTree
whose number of items (rows) match the number of cards can be a controller. Select 'Define Controller' from the card panel's
. In the
you can select an appropriate controller and map controller items to cards.Note: It is possible to control several card panels with one controller. |
FocusTraversalPolicy
to containers contained in a CardPanel (see: Defining a FocusTraversalPolicy).
Note: You can
from CardPanel to JTabbedPane and vice versa at every time without affecting the number or order of child components.
|