🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1536

deprecated method : how to solve?

#1536
From: JPaul Molina
Date: Sun, 25 Nov 2001 07:11
28 lines
1623 bytes
In a scrolldown menu applet :

the following method is deprecated
public boolean handleEvent(Event event)
   {
       highlight(event.x, event.y);
       mousex = event.x;
       mousey = event.y;
       return super.handleEvent(event);
   }

so I try to replace with :
protected void processEvent(AWTEvent event)
   {
   //if (e.getID() == Event.??????)

       highlight(event.x, event.y);
       mousex = event.x;
       mousey = event.y;
       super.processEvent(event);
   }
but I 've gotten errors such x , y not found in AWTEvent class.
then replacing event with Event (from class Event ) I have gotten error such
'cannot make a static reference to a non static variable x...'

How to make this method working?

thanks
Technical Details
Message-ID: <3c00999f_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,2a57e925525ce1f0,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-24 23:28:43 PST
From: "JPaul Molina" <mjeanpaul@nerim.fr>
Newsgroups: borland.public.jbuilder.java.api
Subject: deprecated method : how to solve?
Date: Sun, 25 Nov 2001 08:11:14 +0100
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 62.212.98.222
Message-ID: <3c00999f_1@dnews>
X-Trace: dnews 1006672287 62.212.98.222 (24 Nov 2001 23:11:27 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews