< prev index next >

src/java.desktop/share/classes/javax/swing/JRadioButton.java

Print this page

        

*** 39,49 **** /** * An implementation of a radio button -- an item that can be selected or * deselected, and which displays its state to the user. * Used with a {@link ButtonGroup} object to create a group of buttons * in which only one button at a time can be selected. (Create a ButtonGroup ! * object and use its <code>add</code> method to include the JRadioButton objects * in the group.) * <blockquote> * <strong>Note:</strong> * The ButtonGroup object is a logical grouping -- not a physical grouping. * To create a button panel, you should still create a {@link JPanel} or similar --- 39,49 ---- /** * An implementation of a radio button -- an item that can be selected or * deselected, and which displays its state to the user. * Used with a {@link ButtonGroup} object to create a group of buttons * in which only one button at a time can be selected. (Create a ButtonGroup ! * object and use its {@code add} method to include the JRadioButton objects * in the group.) * <blockquote> * <strong>Note:</strong> * The ButtonGroup object is a logical grouping -- not a physical grouping. * To create a button panel, you should still create a {@link JPanel} or similar
*** 51,63 **** * components. * </blockquote> * <p> * Buttons can be configured, and to some degree controlled, by * <code><a href="Action.html">Action</a></code>s. Using an ! * <code>Action</code> with a button has many benefits beyond directly * configuring a button. Refer to <a href="Action.html#buttonActions"> ! * Swing Components Supporting <code>Action</code></a> for more * details, and you can find more information in <a * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How * to Use Actions</a>, a section in <em>The Java Tutorial</em>. * <p> * See <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a> --- 51,63 ---- * components. * </blockquote> * <p> * Buttons can be configured, and to some degree controlled, by * <code><a href="Action.html">Action</a></code>s. Using an ! * {@code Action} with a button has many benefits beyond directly * configuring a button. Refer to <a href="Action.html#buttonActions"> ! * Swing Components Supporting {@code Action}</a> for more * details, and you can find more information in <a * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How * to Use Actions</a>, a section in <em>The Java Tutorial</em>. * <p> * See <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a>
*** 73,83 **** * 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 applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @beaninfo * attribute: isContainer false * description: A component which can display it's state as selected or deselected. --- 73,83 ---- * 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 applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @beaninfo * attribute: isContainer false * description: A component which can display it's state as selected or deselected.
*** 239,249 **** /** * Returns a string representation of this JRadioButton. This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not ! * be <code>null</code>. * * @return a string representation of this JRadioButton. */ protected String paramString() { return super.paramString(); --- 239,249 ---- /** * Returns a string representation of this JRadioButton. This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not ! * be {@code null}. * * @return a string representation of this JRadioButton. */ protected String paramString() { return super.paramString();
*** 274,294 **** return accessibleContext; } /** * This class implements accessibility support for the ! * <code>JRadioButton</code> class. It provides an implementation of the * Java Accessibility API appropriate to radio button * user-interface elements. * <p> * <strong>Warning:</strong> * 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 applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only protected class AccessibleJRadioButton extends AccessibleJToggleButton { --- 274,294 ---- return accessibleContext; } /** * This class implements accessibility support for the ! * {@code JRadioButton} class. It provides an implementation of the * Java Accessibility API appropriate to radio button * user-interface elements. * <p> * <strong>Warning:</strong> * 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 applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only protected class AccessibleJRadioButton extends AccessibleJToggleButton {
< prev index next >