How to create a JTabbedPane

The next Component we add to our JSplitPane will be a JTabbedPane as the second element. So you have to select the JSplitPane in the builder tree and do the following steps:

  • Press the new JTabbedPane button on the right toolbar. Save this Component within the Editors Panel and select this Component in the builder tree.
  • Press the new JPanel button on the right toolbar.
    Set the following properties of this panel:
    Name to panel1 and Tab Title to Tab 1.
    Save this Component.
  • Again press the new JPanel button on the right toolbar and set the properties:
    Name to panel2 and Tab Title to Tab 2.
    Save this Component.

Check out your frame.