O'Reilly logo

Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams by Jamie Jaworski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required