java.awt.Button (JDK 1.0)
This class represents a GUI pushbutton that displays a specified textual label. Use setActionCommand() to specify an identifying string that is included in the ActionEvent events generated by the button.
public classButtonextends Component { //Public ConstructorspublicButton(); publicButton(Stringlabel); //Public Instance Methods1.1 public synchronized voidaddActionListener(ActionListenerl); public voidaddNotify(); //Overrides Component1.1 public StringgetActionCommand(); public StringgetLabel(); 1.1 public synchronized voidremoveActionListener(ActionListenerl); 1.1 public voidsetActionCommand(Stringcommand); public synchronized voidsetLabel(Stringlabel); //Protected Instance Methodsprotected StringparamString(); //Overrides Component1.1 protected voidprocessActionEvent(ActionEvente); 1.1 protected voidprocessEvent(AWTEvente); //Overrides Component}
Hierarchy:
Object->Component(ImageObserver, MenuContainer, Serializable)->Button
Passed To:
Toolkit.createButton()