Java tutorial
import javax.swing.JButton; import javax.swing.JTabbedPane; public class Main { public static void main(String[] argv) throws Exception { JTabbedPane pane = new JTabbedPane(); JButton component = new JButton("button"); String label = "Tab Label"; pane.addTab(label, component); } }