The Classes and Interfaces of the Event Delegation Model

In the event-delegation model that was introduced with JDK 1.1 (and extended in Java 2), the java.util.EventObject class is the top-level class of the event-class hierarchy. This class provides a source field variable to identify the object that is the source of an event, a getSource() method to retrieve this object, and a toString() method to convert an event into a String representation. It provides a single constructor that takes the object that is the source of the event as an argument.

The java.awt.AWTEvent class extends the java.util.EventObject class to support AWT events. It provides several variables, constants, and methods that are used to identify events and determine whether ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.