Javatpoint Logo
Javatpoint Logo

Java JTabbedPane

The JTabbedPane class is used to switch between a group of components by clicking on a tab with a given title or icon. It inherits JComponent class.

JTabbedPane class declaration

Let's see the declaration for javax.swing.JTabbedPane class.

Commonly used Constructors:

Constructor Description
JTabbedPane() Creates an empty TabbedPane with a default tab placement of JTabbedPane.Top.
JTabbedPane(int tabPlacement) Creates an empty TabbedPane with a specified tab placement.
JTabbedPane(int tabPlacement, int tabLayoutPolicy) Creates an empty TabbedPane with a specified tab placement and tab layout policy.

Java JTabbedPane Example

Output:

JAVA Jtabbedpane 1
Next TopicJava JSlider




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA