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() Button()
- Constructs a Button with no label. 
 Button(String) Button(String)
- Constructs a Button with a string label. 
 
 
 addNotify() addNotify()
- Creates the peer of the button. 
 getLabel() getLabel()
- Gets the label of the button. 
 paramString() paramString()
- Returns the parameter String of this button. 
 setLabel(String) setLabel(String)
- Sets the button with the specified label. 
 
 
 Button
 Button 
public Button()
- Constructs a Button with no label. 
 Button
 Button 
public Button(String label)
- Constructs a Button with a string label. - Parameters: 
- label - the button label 
 
 
 
 addNotify
 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
 getLabel 
public String getLabel()
- Gets the label of the button. - See Also: 
- setLabel 
 
 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
 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