Register a mouse listener on the button
Listing 7 calls the addMouseListener method
- to register a MouseListener object on that button.
The argument to the addMouseListener method
- must be a reference to an object
- instantiated from a class
- that implements the MouseListener interface.