🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

user-defined events

#7370
From: webseal
Date: Mon, 25 Jun 2001 08:21
15 lines
1269 bytes
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: <3b36f246.4749430@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.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: f74b3,522cf07126eb8906,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-25 01:37:20 PST
From: webseal@web.de (webseal)
Newsgroups: borland.public.jbuilder.java.language
Subject: user-defined events
Date: Mon, 25 Jun 2001 08:21:08 GMT
Message-ID: <3b36f246.4749430@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 62.224.167.134
X-Trace: dnews 993457270 62.224.167.134 (25 Jun 2001 01:21:10 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews