Java Reference
In-Depth Information
TOPIC
CONCEPT
Action Ob-
jects
An Action object is an object of a class that implements the Action interface. Action objects can be used
to create menu items and associated toolbar buttons.
Action Ob-
ject Proper-
ties
You can set Action object properties by setting values associated with standard property keys. The prop-
erties you can set include name text and icons for menu items and toolbar buttons, and text for tooltips.
Action Ob-
jects and
Menus
You can create a menu item from an Action object. The appearance of the menu item is determined by
the properties set for the Action object.
Action ob-
jects and
Toolbars
You can create a toolbar button from an Action object. The appearance of the button is determined by the
properties you have set for the Action object.
Events and
Action Ob-
jects
An Action object is automatically the listener for events arising for the menu item and toolbar button that
are created from it. In this way, events arising from a toolbar button and a menu item click event can be
processed by the same method in the Action object.
Search WWH ::




Custom Search