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

Semantic Events

The majority of AWT events are component events, such as mouse down, key pressed, etc. The AWT also provides semantic events, which are higher-level events, such as an action event. Semantic events do not equate to any single component event but describe an event that may consist of a number of component events. Semantic events, in contrast to component events, are always consumed—semantic events are not passed to a component's peer.

For instance, if you wheel the mouse (mouse moved) into a java.awt.Button (mouse entered), press the mouse button (mouse pressed), and release it inside of the button (mouse clicked), the button will fire an action event.

Semantic events are handled in exactly the same manner as component inputs; ...

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