All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.AbstractButton
                                   |
                                   +----com.sun.java.swing.JButton

public class JButton
extends AbstractButton
implements Accessible
An implementation of a Button


Constructor Index

 o JButton()
Creates a button with no set text or icon.
 o JButton(Icon)
Creates a button with a icon.
 o JButton(String)
Creates a button with text.
 o JButton(String, Icon)
Creates a button.

Method Index

 o getAccessibleRole()
Get the role of this object.
 o getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component.
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Constructors

 o JButton
 public JButton()
Creates a button with no set text or icon.

 o JButton
 public JButton(Icon icon)
Creates a button with a icon.

 o JButton
 public JButton(String text)
Creates a button with text.

 o JButton
 public JButton(String text,
                Icon icon)
Creates a button.

Parameters:
text - the text of the button.

Methods

 o updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class AbstractButton
See Also:
updateUI
 o 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
 o 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