Example 13.4: Overriding handleEvent

Program 13.4 uses a custom handleEvent method to print out the name of each event it sees on the standard output. Since this just peeks at the events, but doesn't properly respond to them, at the end of the handleEvent method super.handleEvent is called to pass the event back to the applet's default eventHandler.

The source code


Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
This Chapter
Examples
Home