Implementing Listeners
An application (class) becomes a listener when it implements the listener interface.
Java 1.1 event model provides a variety of listeners.
EX:
- If an application is interested in button click, it will have to implement ActionListener interface.
- actionPerformed() method of the ActionListener will have be implemented by the application.
- When the button click event occurs, actionPerformed() method will be called with event object as argument.