Class java.awt.Button
All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.Button
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Button
- public class Button
- extends Component
A class that produces a labeled button component.
- Button()
- Constructs a Button with no label.
- Button(String)
- Constructs a Button with a string label.
- addNotify()
- Creates the peer of the button.
- getLabel()
- Gets the label of the button.
- paramString()
- Returns the parameter String of this button.
- setLabel(String)
- Sets the button with the specified label.
Button
public Button()
- Constructs a Button with no label.
Button
public Button(String label)
- Constructs a Button with a string label.
- Parameters:
- label - the button label
addNotify
public synchronized void addNotify()
- Creates the peer of the button. This peer allows us to
change the look of the button without changing its functionality.
- Overrides:
- addNotify in class Component
getLabel
public String getLabel()
- Gets the label of the button.
- See Also:
- setLabel
setLabel
public void setLabel(String label)
- Sets the button with the specified label.
- Parameters:
- label - the label to set the button with
- See Also:
- getLabel
paramString
protected String paramString()
- Returns the parameter String of this button.
- Overrides:
- paramString in class Component
All Packages Class Hierarchy This Package Previous Next Index