An anonymous class that implements an interface
Program illustrates use of an anonymous class,
- that implements the MouseListener interface
- to instantiate an object
- to handle "mouse clicked" events
- using the source-listener event model
- sometimes referred to as the delegation event model or the JavaBeans
event model.
The anonymous class uses an instance initializer to display the name of the
class file.