Re: Close JFrame

From: newman (marco.neumann_at_dit.ie)
Date: 11/23/03


Date: Sun, 23 Nov 2003 17:10:28 -0000


//try in the constructor

    addWindowListener( new WindowAdapter() {
      public void windowClosing ( WindowEvent evt ) {
        System.exit(0);
      }
    } );

"Alex Ostrikov" <aostrik@hotmail.com> wrote in message
news:VQTvb.602$Yt4.425@lakeread05...
> Hello, all !!!
>
> Tell me plz, which function closes JFrame.
> I want to close it by button "Close".
>
> Thanx
>
>