actionCommand

Sets the command string a button puts on the ActionEvent it fires, read back as event.actionCommand. It tells two buttons apart inside one shared listener, and it stays put when the button's text changes with the locale. null restores the default, where a button reports its own text as the command.

Parameters

command

the command string carried by the button's action events.

See also