🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: public boolean handleEvent(Event e)

#19396
From: Rich Wilkman
Date: Tue, 10 Feb 1998 00:00
39 lines
1771 bytes
Tom:

The whole 1.02 event model (what you are using) has been deprecated. 
Grab a 1.1 Java book to see the new structures, or use the UI designer
in JBuilder to set an event and you can see the new mechanism.

-Rich

Tom Holman wrote:
> 
> When I use public boolean handleEvent(Event e ) I get a warning that it is
> deprecated. I can not find what it is replaced with for sure or how to use
> it. Anyone know how the following code should be converted?
> 
> public boolean handleEvent(Event e){
>              switch ( e.id){
>                     case e.WINDOW_DESTROY:
>                          dispose();
>                          return true;
>                     default:
>                             return false;
>              }
>       }

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <34E08695.8D9D04A0@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6bpu73$ea12@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f5e31e76f7d86118
X-Google-Attributes: gidf74b3,public
From: Rich Wilkman <rwilkman@corp.borland.com>
Subject: Re: public boolean handleEvent(Event e)
Date: 1998/02/10
Message-ID: <34E08695.8D9D04A0@corp.borland.com>
X-Deja-AN: 323791799
Content-Transfer-Encoding: 7bit
References: <6bpu73$ea12@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language