FileDocCategorySizeDatePackage
FrameClose1.javaAPI DocExample400Thu Oct 24 20:14:22 BST 2002None

FrameClose1

public class FrameClose1 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    JFrame mainFrame = new JFrame();

    // Exit app when frame is closed.
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    mainFrame.setSize(320, 240);
    mainFrame.setVisible(true);