FileDocCategorySizeDatePackage
TabPaneDemo.javaAPI DocExample437Sat Nov 25 12:55:18 GMT 2000None

TabPaneDemo

public class TabPaneDemo extends Object

Fields Summary
protected JTabbedPane
tabPane
Constructors Summary
public TabPaneDemo()

		tabPane = new JTabbedPane();
		tabPane.add(new JLabel("One", JLabel.CENTER), "First");
		tabPane.add(new JLabel("Two", JLabel.CENTER), "Second");
	
Methods Summary
public static voidmain(java.lang.String[] a)

		JFrame f = new JFrame("Tab Demo");
		f.getContentPane().add(new TabPaneDemo().tabPane);
		f.setSize(120, 100);
		f.setVisible(true);