Article View: borland.public.jbuilder.java.language
Article #19911Closing a dialog window....
From: John Papadomichelakis
Date: Sun, 23 Nov 1997 00:00
Date: Sun, 23 Nov 1997 00:00
51 lines
1874 bytes
1874 bytes
This is a multi-part message in MIME format.
--------------9A4B7B3AB8F38D05F38B0288
Content-Type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 7bit
The following code has no effect on a dialog window.
It works great on frames!
protected void processWindowEvent(WindowEvent parm1) {
//TODO: override this java.awt.Window method;
super.processWindowEvent( parm1);
if(parm1.getID() == WindowEvent.WINDOW_CLOSING)
this.dispose();
}
So.. How can I "enable" the standard behavior of windows closing?
(Pressing the X button etc).
--
Papadomichelakis John
"Unite for Java! - http://www.javalobby.org"
__________________________________________________
email : michelos@freemail.gr
URL : http://users.spark.net.gr:8080/~michelos/
TEL : 30 31 758 429, 30 31 709 796
__________________________________________________
--------------9A4B7B3AB8F38D05F38B0288
Content-Type: text/x-vcard; charset=iso-8859-7; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Papadomichelakis
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: John Papadomichelakis
n: Papadomichelakis;John
org: BIA
adr: 9 Filippou;;Euosmos;Thessaloniki;;56224;Greece
email;internet: michelos@freemail.gr
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard
--------------9A4B7B3AB8F38D05F38B0288--
Technical Details
Message-ID:
<34777154.18231813@freemail.gr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,382e967d10e12a9c,start X-Google-Attributes: gidf74b3,public From: John Papadomichelakis <michelos@freemail.gr> Subject: Closing a dialog window.... Date: 1997/11/23 Message-ID: <34777154.18231813@freemail.gr> X-Deja-AN: 291668538 Organization: None Newsgroups: borland.public.jbuilder.java.language