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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With