home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / java / TabExample.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-11-28  |  791 b   |  13 lines

  1. import com.sun.java.swing.JApplet;
  2. import com.sun.java.swing.JScrollPane;
  3. import com.sun.java.swing.JTabbedPane;
  4.  
  5. public class TabExample extends JApplet {
  6.    public void init() {
  7.       JTabbedPane var1 = new JTabbedPane();
  8.       var1.addTab("Table example", new JScrollPane(new MyTable()));
  9.       var1.addTab("Editor example", new MyEditor(this));
  10.       ((JApplet)this).getContentPane().add(var1);
  11.    }
  12. }
  13.