import javax.swing.*;

public class GUIBasics
{
	public static void main (String[]args)
	{
		// creates a new frame with title of "GUI Basics Demo"
		JFrame frame = new JFrame ("GUI Basics Demo");

		// when JFrame is closed, shell window gives 'press any key' prompt
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		JTabbedPane tp=new JTabbedPane();    // creates new JTabbedPan called tp

		// adds the different classes to different tabs using the default constructor for each
		tp.addTab("Intro", new IntroPanel());
		tp.addTab("Flow", new FlowPanel());
		tp.addTab("Border", new BorderPanel());
		tp.addTab("Grid", new GridPanel());
		tp.addTab("Box", new BoxPanel());
		tp.addTab("List", new ListPanel());
		tp.addTab("OtherStuff", new OtherStuffPanel());

		// adding the tabbed pane tp to the content pane
		frame.getContentPane().add(tp);
		// Causes this Window to be sized to fit the preferred size and layouts of its subcomponents
		frame.pack();		//(maximaze window)
		// Makes the Window visible. If the Window and/or its owner are not yet displayable,
		// both are made displayable.
		frame.show();
	}
}