import java.util.*;
import javax.swing.*;
import javax.swing.tree.*;
import java.awt.*;

public class TabbedSample extends JPanel {

  public TabbedSample() {
	super();	

	JTabbedPane tpane = new JTabbedPane();

	tpane.addTab("ScrollSample", new ImageIcon("open.gif"),
		     new ScrollSample(), "The Previous Scroll Sample");
	tpane.addTab("SplitSample", null,
	             new SplitSample(), null);
	tpane.addTab("TreeSample", new ImageIcon("save.gif"),
	             new TreeSample(), "The Tree Sample");		
        tpane.addTab("TableSample", null,
                     new TableSample(), "The Table Sample");

        //Add the tabbed pane to this panel.
        setLayout(new GridLayout(1, 1)); 
        add(tpane);
   }
   public static void main (String args[]) {
	TabbedSample app = new TabbedSample();
	JFrame frame = new JFrame ("My Application");
	frame.setContentPane(app);
	frame.pack();
	frame.show();
   }
}


         
