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

Action Events

Action events are generated by the following classes:

  • Button

  • Checkbox

  • Choice

  • List

  • MenuItem

  • TextField

All of the components listed above are capable of generating action events, as you can see from Figure 8-1. Note that action events under the original event model do not necessarily equate to an ActionEvent under the delegation event model—see “Semantic Events”.[4]

[4] Specifically, checkboxes and choices generate item events instead of action events.

Figure 8-1. Action Events. Action events are events generated by selecting choice items, checkboxes, buttons, or menu items, by entering a carriage return in a textfield, or by double-clicking an item in a list.

ActionTest creates one of each of these AWT components. The unique characteristic ...

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