Chapter 13, “The java.awt Package: Event Handling”

The JDK 1.02 supported an approach to event handling that was referred to as an inheritance model. The JDK 1.02 approach to event handling was replaced by an event-delegation model in JDK 1.1. The event-delegation model is the model used by all subsequent versions of the JDK.

The event-delegation model provides the capability to deliver events to programmer-selected classes.

The java.util.EventObject class is the top-level class of the event-delegation class hierarchy.

The AWTEvent class is extended by the following classes of java.awt.event:

  • ActionEvent— Generated by user interface actions, such as clicking a button or selecting a menu item.

  • AdjustmentEvent— Generated by scrolling actions. ...

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.