An event listener is a class that you write to handle events. |
For each event type, the java.awt.event package defines an event listener interface. For example, an event listener to receive an ActionEvent must implement the ActionListener interface. (Actually, MouseEvents have two interfaces MouseListener and MouseMotionListener.) |
Each listener interface defines one or more method names, which must be implemented in the event listener. |