Quantcast
Channel: Examples Java Code Geeks » JTabbedPane
Viewing all articles
Browse latest Browse all 8

Remove tab in JTabbedPane

$
0
0
With this example we shall see how to  remove a tab from a JTabbedPane. In order to do that, one should follow these steps: Create a new JFrame. Call frame.getContentPane().setLayout(new GridLayout(1, 1) to set up grid layout for the frame. Use JTabbedPane(JTabbedPane.TOP) to get a JTabbedPane. Use tabbedPane.remove(2) to remove the third tab for instance Use tabbedPane.addTab to add a tool tip. Let’s see the ...

Viewing all articles
Browse latest Browse all 8

Trending Articles