Article View: borland.public.jbuilder.java.api
Article #3044Re: Close box on Dialogues
From: Greg Hamer
Date: Thu, 04 Jun 1998 00:00
Date: Thu, 04 Jun 1998 00:00
15 lines
1000 bytes
1000 bytes
Should work, but you also need
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
This is typically placed in the windows constructor. ( and you left off
the open parenthesis in e.getID( ) ...)
John Newkirk wrote:
> How do I trap the close box on a dialogue? With the top-level frame,
> you can use
> void processWindowEvent(WindowEvent e) {
> if(e.getID) == WindowEvent.WINDOW_CLOSING) ...
>
> but this doesn't automatically work in a dialogue.
Technical Details
Message-ID:
<3576DB6F.C2E0A485@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35762082.49A9@worldnet.att.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,3593d1f911cb2d0d X-Google-Attributes: gid1089d0,public From: Greg Hamer <ghamer@inprise.com> Subject: Re: Close box on Dialogues Date: 1998/06/04 Message-ID: <3576DB6F.C2E0A485@inprise.com> X-Deja-AN: 359545939 Content-Transfer-Encoding: 7bit References: <35762082.49A9@worldnet.att.net> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api