Basic HTML version of Foils prepared 19 July 97

Foil 26 Event Listeners

From Overview of JDK Version 1.1 Extensions CPS616 -- Information Track of CPS -- Spring Semester 97. by Nancy J. McCracken


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.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998