🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WINDOW_DESTROY

#18075
From: Chris Hill
Date: Sun, 16 Aug 1998 00:00
38 lines
1443 bytes
The entire handleEvent mechanism is depricated.  See the
WindowListener interface, WindowAdapter class and the
addWindowListener function of the Window class for the updated
functionality.  These interfaces represent the new way to handle
window events as of JDK 1.1.


On Sat, 15 Aug 1998 17:41:26 -0700, "Sam C. King"
<samcking@olypen.com> wrote:

>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
>

Chris Hill
hillca@cs.purdue.edu
Technical Details
Message-ID: <35d6591a.515705875@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35D62AB5.AA1E49A1@olypen.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d9eed9202e751080
X-Google-Attributes: gidf74b3,public
From: hillca@cs.purdue.edu (Chris Hill)
Subject: Re: WINDOW_DESTROY
Date: 1998/08/16
Message-ID: <35d6591a.515705875@forums.borland.com>
X-Deja-AN: 381574712
References: <35D62AB5.AA1E49A1@olypen.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language