|
On Jan 18, 2005, at 00:18, André de Leiradella wrote:
That's not true. ActionListener is an interface that you must implement in your class when instances of it must respond to button presses/releases. *If* you want to process those actions, you implement the interface and by doing that you must write the code of the method actionPerformed (the only method declared in the interface) that will handle the events.
Most likely he meant one of those uncountable *Adapter class [1]. In their great wisdom, the wizards at Sun Inc have provided concrete -but empty- implementation of much of their Listener interfaces. Duh.
Cheers -- PA http://alt.textdrive.com/[1] http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/package- summary.html