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

Enable scrolling tabs in JTabbedPane

$
0
0
With this example we shall show you how to enable scrolling in a JTabbedPane component of a Java Desktop Application. In order to do that you just have to 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.addTab to add a tab. Use tabbedPane.getTabRunCount() to get the ...

Viewing all articles
Browse latest Browse all 8

Trending Articles