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

All applets involving the AWT are event driven. The applets display their components and patiently wait for some event to occur. There's a special group of event handling methods, generically referred to as propagated event handlers because they either handle an event or propagate it up to the container in which the component is displayed. A propagated event handler returns true to indicate the event has been completely handled and should not be propagated up to its container; it returns false to indicate that the event is to be propagated up to the container. Propagated events always work their way from the innermost component to the outermost container. We've seen that overridden handleEvent methods should never return false and directly ...

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