Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add tabs to JTabbedPane using WindowBuilder

Ok so I've recently found out about WindowBuilder (Eclipse IDE) that aids in faster creation of Swing applications. I have a added a JTabbedPane using the drag and drop facility. How can I add tabs to it? I have gone through the properties but I couldn't find how to add tabs using WindowBuilder. Although I have manually added tabs but I just want to know what is the other way round.

like image 590
Saurabh Jain Avatar asked Feb 13 '14 09:02

Saurabh Jain


People also ask

Which method is used to add tabs in JTabbedPane?

To create a tabbed pane, instantiate JTabbedPane , create the components you wish it to display, and then add the components to the tabbed pane using the addTab method.


1 Answers

Just add a JPanel to the JTabbedPane. The tab will appear. To add more tabs just click the next to the tab header, with the JPanel still selected. To switch between tabs just double click the tab header

enter image description here

like image 55
Paul Samsotha Avatar answered Oct 04 '22 06:10

Paul Samsotha