ButtonNameButton
DescriptionThe Button is the familiar labeled button object. It inherits most of its functionality from Component. For example, to change the font of the Button, you would use Component's setFont() method. The Button sends java.awt.event.ActionEvent objects to its listeners when it is pressed. Class Definition
public class java.awt.Button
extends java.awt.Component {
// Constructors
public Button();
public Button (String label);
// Instance Methods
public void addActionListener (ActionListener l);
ConstructorsButtonpublic Button()
public Button (String label)
Instance MethodsaddActionListenerpublic void addActionListener (ActionListener l)
|
|