... from an object that implements ActionListener
Just a quick one, I'm working on a Pong applet at the moment ( see
http://charlieharvey.org.uk/cgi-bin/...?seen=1&uid=44 ).
There's a Pong object which extends JPanel and implements ActionListener, and a PongApplet object which extends JApplet and implements ActionListener, too.
I'd like to be able to fire an ActionEvent from the Pong object when the game finishes so that the PongApplet is able to update the scores, but I'm guessing that the Pong's ActionListener will catch the ActionEvent.
Anyone know off the top of their heads the best way for my PongApplet to be able to listen to my Pong object?
Feel free to tell me to STFW - I had a late hacking session and can't wuite face fiddling with code til tomorrow anyhow...
Charlie
--
Don't Stand on your head - you'll get footprints in your hair
http://charlieharvey.org.uk
http://charlieharvey.com