All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JButton
To create a set of mutually exclusive buttons, create a ButtonGroup object and
use its add method to include the JButton objects in the group.
See How to Use Buttons in The Java Tutorial for further documentation.
For the keyboard keys used by this component in the standard Look and Feel (L&F) renditions, see the JButton key assignments.
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
public JButton()
public JButton(Icon icon)
public JButton(String text)
public JButton(String text,
Icon icon)
public void updateUI()
public String getUIClassID()
public boolean isDefaultButton()
public AccessibleContext getAccessibleContext()
All Packages Class Hierarchy This Package Previous Next Index