🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16353

Re: Having trouble with the Window Closing event

#16353
From: Tor Iver Wilhelmsen
Date: Wed, 03 Mar 1999 00:00
13 lines
979 bytes
Daniel Spangler <sonstone@exis.net> writes:

> 1. What is the proper way to close a frame?  The only thing I have found
> that works is the dispose function.  When I call this the Window Closing
> Event isn't fired.

No, the windowClosing event occurs as the user presses the close icon
on the frame: That is, the other way compared to what you assume.

> 2. Can you cancel a close within the Window Closing Event?

Yes, you can choose not to close it, which also is the default
operation.
Technical Details
Message-ID: <ulnhebxa2.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36DCABAE.89598DBF@exis.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7b0570da408d22a8
X-Google-Attributes: gidf74b3,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: Having trouble with the Window Closing event
Date: 1999/03/03
Message-ID: <ulnhebxa2.fsf@sds.no>
X-Deja-AN: 450725218
Sender: towi@SDSA1761
References: <36DCABAE.89598DBF@exis.net>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language