FileDocCategorySizeDatePackage
Ch06_03.javaAPI DocExample1206Mon Nov 03 15:45:08 GMT 2003org.eclipsebook.ch06

Ch06_03

public class Ch06_03 extends JFrame
author
Steven Holzner To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Fields Summary
Panel
p
Constructors Summary
public Ch06_03()

		super("Swing application");

		Container contentPane = getContentPane();
		p = new Panel();
		contentPane.add(p);
	
Methods Summary
public static voidmain(java.lang.String[] args)

		final JFrame f = new Ch06_03();

		f.setBounds(100, 100, 300, 300);
		f.setVisible(true);
		f.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		
		f.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});