import java.awt.event.*;
import javax.swing.*;

//To change:
// - FrameStart becomes the program name
// - "The frame's title" becomes the frame's title

public class FStarter extends JPanel
{
    public static void main (String [] args)
    {
	//Make sure we have nice window decorations.
	JFrame.setDefaultLookAndFeelDecorated (true);

	//Create and set up the window.
	JFrame frame = new JFrame ("Frame Demo");
	frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);

	//Create and set up the content pane.
	JComponent newContentPane = new FStarter ();
	newContentPane.setOpaque (true); //content panes must be opaque
	frame.setContentPane (newContentPane);
	frame.setSize (300, 150);

	//Display the window.
	// frame.pack ();
	frame.setVisible (true);
    }

}
  

