Article View: borland.public.jbuilder.java.language
Article #18072WINDOW_DESTROY
From: Sam C. King
Date: Sat, 15 Aug 1998 00:00
Date: Sat, 15 Aug 1998 00:00
24 lines
1067 bytes
1067 bytes
Deprecation: it is now wrong to use this simple code:
public boolean handleEvent (Event event)
{
if ( event.id == Event.WINDOW_DESTROY )
{
setVisible(false);
dispose();
return true;
}
return super.handleEvent( event );
}
The deprecation warning comes from the last line:
return...handleEvent....
So, what are you suppose to do? There are no working
examples that I can find. I found the section on
WINDOW_CLOSING, but there is just some obscure
instructions and never the courtsey of a small
working example.
Thanks
Sam samcking@olypen.com
Technical Details
Message-ID:
<35D62AB5.AA1E49A1@olypen.com>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,d9eed9202e751080,start X-Google-Attributes: gidf74b3,public From: "Sam C. King" <samcking@olypen.com> Subject: WINDOW_DESTROY Date: 1998/08/15 Message-ID: <35D62AB5.AA1E49A1@olypen.com> X-Deja-AN: 381539272 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language