 |
|

The setActionCommand method:
- Changes the label on its associated button or menu item
- Changes the value of the private instance variable associated with its button or menu item
- Can be used to differentiate between buttons (or menu items) with the same label
- Is an ordinary mutator method associated with the corresponding button or menu item
- Assumes that the programmer will use getActionCommand to retrieve the stored information
|

 |
| |
|
|
 |