Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.swing.JComponent | +----java.awt.swing.AbstractButton | +----java.awt.swing.JToggleButton | +----java.awt.swing.JRadioButton
ButtonGroup
to create a group of buttons
in which only one button at a time can be selected.
See How to Use Radio Buttons
in The Java Tutorial
for further documentation.
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.
Inner Class Summary | |
JRadioButton.AccessibleJRadioButton
|
Inner classes inherited from class java.awt.swing.JToggleButton |
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
Inner classes inherited from class java.awt.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Inner classes inherited from class java.awt.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class java.awt.swing.AbstractButton |
actionListener, changeEvent, changeListener, itemListener, model |
Fields inherited from class java.awt.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
JRadioButton()
|
|
JRadioButton(Icon icon)
|
|
JRadioButton(Icon icon,
boolean selected)
|
|
JRadioButton(String text)
|
|
JRadioButton(String text,
boolean selected)
|
|
JRadioButton(String text,
Icon icon)
|
|
JRadioButton(String text,
Icon icon,
boolean selected)
|
Method Summary | |
AccessibleContext | getAccessibleContext()
|
String | getUIClassID()
|
void | updateUI()
|
Methods inherited from class java.awt.swing.JToggleButton |
getAccessibleContext, getUIClassID, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setLayout, update, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JRadioButton()
public JRadioButton(Icon icon)
icon
- the image that the button should display
public JRadioButton(Icon icon, boolean selected)
icon
- the image that the button should display
selected
- if true, the button is initially selected;
otherwise, the button is initially unselected
public JRadioButton(String text)
text
- the string displayed on the radio button
public JRadioButton(String text, boolean selected)
text
- the string displayed on the radio button
selected
- if true, the button is initially selected;
otherwise, the button is initially unselected
public JRadioButton(String text, Icon icon)
text
- the string displayed on the radio button
icon
- the image that the button should display
public JRadioButton(String text, Icon icon, boolean selected)
text
- the string displayed on the radio button
icon
- the image that the button should display
Method Detail |
public void updateUI()
public String getUIClassID()
public AccessibleContext getAccessibleContext()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |