O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

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

Summary

This chapter has covered the delegation-based event model that supersedes the inheritance-based model that came with the original AWT. Although the original event model was sufficient for applets (and applications) with simple event handling needs, it did not scale well for a number of reasons (see “Shortcomings of the Inheritance-Based Event Model”). The new event model addresses nearly all of the drawbacks of the original event model while maintaining compatibility, at least for the time being, with the old model.

We've explored many of the aspects of the new event model in this chapter: events, components, and listeners, along with semantic events, consuming events, firing standard and custom events from custom components, etc.

While ...

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