FileDocCategorySizeDatePackage
JFrameSimple.javaAPI DocExample571Sun Feb 22 21:39:22 GMT 2004None

JFrameSimple

public class JFrameSimple extends JFrame
Just a Frame
version
$Id: JFrameSimple.java,v 1.2 2004/02/23 03:39:22 ian Exp $

Fields Summary
JButton
quitButton
Constructors Summary
public JFrameSimple()
Construct the object including its GUI

		super("JFrameSimple");

		getContentPane().add(quitButton = new JButton("Exit"));

		// Set up so that "Close" will exit the program
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		pack();
	
Methods Summary
public static voidmain(java.lang.String[] args)

		new JFrameSimple().setVisible(true);