All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.JButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.swing.JComponent
|
+----java.awt.swing.AbstractButton
|
+----java.awt.swing.JButton
- public class JButton
- extends AbstractButton
- implements Accessible
An implementation of a "push" button.
JButton()
- Creates a button with no set text or icon.
JButton(Icon)
- Creates a button with a icon.
JButton(String)
- Creates a button with text.
JButton(String, Icon)
- Creates a button.
getAccessibleRole()
- Get the role of this object.
getUIClassID()
- Returns a string that specifies the name of the L&F class
that renders this component.
updateUI()
- Notification from the UIFactory that the L&F
has changed.
JButton
public JButton()
- Creates a button with no set text or icon.
JButton
public JButton(Icon icon)
- Creates a button with a icon.
JButton
public JButton(String text)
- Creates a button with text.
JButton
public JButton(String text,
Icon icon)
- Creates a button.
- Parameters:
- text - the text of the button.
updateUI
public void updateUI()
- Notification from the UIFactory that the L&F
has changed.
- Overrides:
- updateUI in class AbstractButton
- See Also:
- updateUI
getUIClassID
public String getUIClassID()
- Returns a string that specifies the name of the L&F class
that renders this component.
- Returns:
- "ButtonUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
getAccessibleRole
public AccessibleRole getAccessibleRole()
- Get the role of this object.
- Returns:
- an instance of AccessibleRole describing the role of the object
- Overrides:
- getAccessibleRole in class JComponent
- See Also:
- AccessibleRole
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature