PPT Slide
In order to capture an event, you need to have an appropriate “event listener".
An event listener is an interface which specifies some event-handling methods for the particular type of event to be handled.
an ActionListener specifies the method:
public void actionPerformed(ActionEvent <eventName>)
For a complete listing of the listeners and the methods
they require, refer to p.151 of Java in a Nutshell,
or the java.awt.event.* package.