Previous | Next | Trail Map | Creating a User Interface | Using Components, the GUI Building Blocks

The 1.1 AWT Event Model

As of JDK 1.1, the AWT has a new event model. The old, containment-based model(in the Creating a User Interface trail) still works, but its use is discouraged because the 1.1 model is so much more flexible, powerful, and efficient.

Introduction to the 1.1 AWT Event Model

This section explains the 1.1 event model and contains a few illustrative applets.

Using Adapters and Inner Classes to Handle AWT Events

To reduce unnecessary code, you can use adapters and inner classes. This section shows how and when to do so.

Handling Standard AWT Events

This section lists all the events AWT components can generate and gives examples of handling each kind of event.


Previous | Next | Trail Map | Creating a User Interface | Using Components, the GUI Building Blocks