Article View: borland.public.jbuilder.java.language
Article #7376Re: user-defined events
From: Steve Holt
Date: Mon, 25 Jun 2001 12:08
Date: Mon, 25 Jun 2001 12:08
19 lines
1808 bytes
1808 bytes
Check out the Observer/Observable classes. (see reply to subject 'custom events' for more details) "webseal" <webseal@web.de> wrote in message news:3b36f246.4749430@newsgroups.borland.com... > I am working on a graphical applet in JBuilder4 (JDK 1.3). > I have graphical objects that move over the screen. Whenever two of > these objects collide with each other I want to send an user defined > event to my applet. > All objects also should have an user-defined event-handler that is > listening to the event above and reacting by e.g. deleting one of the > boxes. > > How can I do it with Java? I read about actionListeners that seem to > do it. But I think they are limited to components and I couldn't find > any examples about defining a user-defined event > > Any help appreciated :-) > > Webseal
Technical Details
Message-ID:
<3b3729ba$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b36f246.4749430@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,522cf07126eb8906 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-25 05:09:42 PST Reply-To: "Steve Holt" <Steve_Holt@PortaSystems.co.uk> From: "Steve Holt" <Steve_Holt@PortaSystems.co.uk> Newsgroups: borland.public.jbuilder.java.language References: <3b36f246.4749430@newsgroups.borland.com> Subject: Re: user-defined events Date: Mon, 25 Jun 2001 13:08:23 +0100 Lines: 21 Organization: PortaSystems Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 194.217.118.116 Message-ID: <3b3729ba$1_1@dnews> X-Trace: dnews 993470906 194.217.118.116 (25 Jun 2001 05:08:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews