import javax.swing.JFrame;

public class EmptyFrameViewer
{
	public static void main(String[] args)
	{
	    JFrame frame = new JFrame();
	    frame.setSize(300, 400);
	    frame.setTitle("An Empty Frame");
 //When the user closes the frame, the program automatically exits.
	    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    frame.setVisible(true);
	}
}