FileDocCategorySizeDatePackage
SimpleTab.javaAPI DocExample696Thu Oct 24 20:14:24 BST 2002None

SimpleTab

public class SimpleTab extends JFrame

Fields Summary
JTabbedPane
jtp
Constructors Summary
public SimpleTab()

    super("JTabbedPane");
    setSize(200, 200);
    Container contents = getContentPane();
    jtp = new JTabbedPane();
    jtp.addTab("Tab1", new JLabel("This is Tab One"));
    jtp.addTab("Tab2", new JButton("This is Tab Two"));
    jtp.addTab("Tab3", new JCheckBox("This is Tab Three"));
    contents.add(jtp);

    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    new SimpleTab();