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


The New 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 new model is so much more flexible, powerful, and efficient.

Introduction to the New AWT Event Model

This section explains the new 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