Constructors
Name | Description |
---|---|
Button() | Constructs a Button with no label. |
Button(String) | Constructs a Button with the specified label. |
Methods
Name | Description |
---|---|
addActionListener(ActionListener) | Adds the specified action listener to receive action events from this button. |
addNotify() | Creates the peer of the button. |
getActionCommand() | Returns the command name of the action event fired by this button. |
getLabel() | Gets the label of this button. |
paramString() | Returns the parameter string representing the state of this button. |
processActionEvent(ActionEvent) | Processes action events occurring on this button by dispatching them to any registered ActionListener objects. |
processEvent(AWTEvent) | Processes events on this button. |
removeActionListener(ActionListener) | Removes the specified action listener so that it no longer receives action events from this button. |
setActionCommand(String) | Sets the command name for the action event fired by this button. |
setLabel(String) | Sets the button's label to be the specified string. |