|
SWING
TABS
With the
JTabbedPane class, you can have several components share the same
space. The user chooses which component to view by selecting the
tab of the desired component.
To create a tabbed pane, you simply instantiate JTabbedPane, create
the components you wish it to display, and then add the components
to the tabbed pane using the addTab method.
You can change the tab position to be at the left, right, or bottom
of the tabbed pane using the setTabPlacement method.
|
|