🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Mouse Event Help!!!

#2286
From: Torsten Welches
Date: Fri, 20 Apr 2001 05:43
30 lines
1878 bytes
Vilasack,

if you need an applet you would extend either Applet or JApplet.
Putting a mouseMove method inside the class gets you nothing,
please be sure to understand the event handler concept.
You might want to consider going through a good tutorial, there
are decent ones available online, the most prominent being:
http://java.sun.com/docs/books/tutorial/index.html

To answer the question about capturing all mouse events: You 
would probably don't want to do that with event handler -
override the processMouseEvent method instead... 

Torsten

"Vilasack  Phothisan" <vilasack_phothisan@hotmail.com> wrote:
>How do I create an object that would capture all the mouse events?
>
>I want it to behave like an applet. For example
>
>if I put
>Public Void mouseMove(...) inside the applet class...
>this event will fire when the mouse moves within the applet.
>
>I want the same concept for this object I am trying to create. What class do
>I extend?
>
>
>
Technical Details
Message-ID: <3adfcc85$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3adf47b1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,b05d3b3fee2abb19
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-04-19 23:15:09 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: Mouse Event Help!!!
Newsgroups: borland.public.jbuilder.java.api
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <3adf47b1_2@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3adfcc85$1_2@dnews>
Date: 19 Apr 2001 22:43:33 -0700
X-Trace: dnews 987745413 207.105.83.65 (19 Apr 2001 22:43:33 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews