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 ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition 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.