public class Example2 extends Frame
{
    public void initForm ( )
    {

    /** Download complete source for full example
     */
    
        this.addWindowListener( 
            new WindowDelegate( this,
            "windowClosing",
            WindowDelegate.CLOSING ) ); 
    }
    
    public void windowClosing ( WindowEvent e )
    {
        System.exit(1);
    }
}
