Article View: borland.public.jbuilder.java.swing
Article #8870Re: Console window hangs if application closes
From: Arnaud Berger
Date: Fri, 07 Jul 2000 00:00
Date: Fri, 07 Jul 2000 00:00
28 lines
1218 bytes
1218 bytes
Hi !
Assuming f is your Frame , just write :
f.addWindowListener (new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
==========================
or: f.addWindowListener (new WA());
with a class like
class WA extends WindowAdapter{
{
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
Bye !
@rn@ud))��������
Technical Details
Message-ID:
<8k41m4$ho4$1@smtp2.secure-technologies.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39647229.C58861@kwsoft.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,48c6d5a9f0a53854 X-Google-Attributes: gid111d45,public From: "Arnaud Berger" <arnaud.berger@dmic.fr> Subject: Re: Console window hangs if application closes Date: 2000/07/07 Message-ID: <8k41m4$ho4$1@smtp2.secure-technologies.com> X-Deja-AN: 643375098 Sender: arnaud@mx.dmic.fr References: <39647229.C58861@kwsoft.de> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Complaints-To: news@news.secure-technologies.com X-Trace: smtp2.secure-technologies.com 962955780 18180 195.115.164.123 (7 Jul 2000 07:43:00 GMT) Organization: DMIC NNTP-Posting-Date: 7 Jul 2000 07:43:00 GMT Newsgroups: borland.public.jbuilder.java.swing