Описание тега jtabbedpane
A Java Swing component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.
A Java Swing component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.
JTabbedPane
may have tabs header along any of the four edges. Each tab header consists of the name and optional icon. Clicking on the tab header brings the associated tab to the top. The tab itself can any any single component (most often it is JPanel
). Tab components are added to the tabbed pane like keys to the map:
tabbedPane.addTab("My tab", myComponent);
Duplicate tabs headers are possible but usually not used as they may be confusing. JTabbedPane
also has methods to remove tabs and replace the tab header texts or icons.
For examples and information on using tabbed panes see How to Use Tabbed Panes.