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