How to add tabs to JTabbedPane using WindowBuilder

Saurabh Jain picture Saurabh Jain · Feb 13, 2014 · Viewed 38k times · Source

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.

Answer

Paul Samsotha picture Paul Samsotha · Feb 13, 2014

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