40 * An implementation of a radio button -- an item that can be selected or 41 * deselected, and which displays its state to the user. 42 * Used with a {@link ButtonGroup} object to create a group of buttons 43 * in which only one button at a time can be selected. (Create a ButtonGroup 44 * object and use its <code>add</code> method to include the JRadioButton objects 45 * in the group.) 46 * <blockquote> 47 * <strong>Note:</strong> 48 * The ButtonGroup object is a logical grouping -- not a physical grouping. 49 * To create a button panel, you should still create a {@link JPanel} or similar 50 * container-object and add a {@link javax.swing.border.Border} to it to set it off from surrounding 51 * components. 52 * </blockquote> 53 * <p> 54 * Buttons can be configured, and to some degree controlled, by 55 * <code><a href="Action.html">Action</a></code>s. Using an 56 * <code>Action</code> with a button has many benefits beyond directly 57 * configuring a button. Refer to <a href="Action.html#buttonActions"> 58 * Swing Components Supporting <code>Action</code></a> for more 59 * details, and you can find more information in <a 60 * href="http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html">How 61 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 62 * <p> 63 * See <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a> 64 * in <em>The Java Tutorial</em> 65 * for further documentation. 66 * <p> 67 * <strong>Warning:</strong> Swing is not thread safe. For more 68 * information see <a 69 * href="package-summary.html#threading">Swing's Threading 70 * Policy</a>. 71 * <p> 72 * <strong>Warning:</strong> 73 * Serialized objects of this class will not be compatible with 74 * future Swing releases. The current serialization support is 75 * appropriate for short term storage or RMI between applications running 76 * the same version of Swing. As of 1.4, support for long term storage 77 * of all JavaBeans<sup><font size="-2">TM</font></sup> 78 * has been added to the <code>java.beans</code> package. 79 * Please see {@link java.beans.XMLEncoder}. 80 * 81 * @beaninfo 82 * attribute: isContainer false 83 * description: A component which can display it's state as selected or deselected. | 40 * An implementation of a radio button -- an item that can be selected or 41 * deselected, and which displays its state to the user. 42 * Used with a {@link ButtonGroup} object to create a group of buttons 43 * in which only one button at a time can be selected. (Create a ButtonGroup 44 * object and use its <code>add</code> method to include the JRadioButton objects 45 * in the group.) 46 * <blockquote> 47 * <strong>Note:</strong> 48 * The ButtonGroup object is a logical grouping -- not a physical grouping. 49 * To create a button panel, you should still create a {@link JPanel} or similar 50 * container-object and add a {@link javax.swing.border.Border} to it to set it off from surrounding 51 * components. 52 * </blockquote> 53 * <p> 54 * Buttons can be configured, and to some degree controlled, by 55 * <code><a href="Action.html">Action</a></code>s. Using an 56 * <code>Action</code> with a button has many benefits beyond directly 57 * configuring a button. Refer to <a href="Action.html#buttonActions"> 58 * Swing Components Supporting <code>Action</code></a> for more 59 * details, and you can find more information in <a 60 * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How 61 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 62 * <p> 63 * See <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a> 64 * in <em>The Java Tutorial</em> 65 * for further documentation. 66 * <p> 67 * <strong>Warning:</strong> Swing is not thread safe. For more 68 * information see <a 69 * href="package-summary.html#threading">Swing's Threading 70 * Policy</a>. 71 * <p> 72 * <strong>Warning:</strong> 73 * Serialized objects of this class will not be compatible with 74 * future Swing releases. The current serialization support is 75 * appropriate for short term storage or RMI between applications running 76 * the same version of Swing. As of 1.4, support for long term storage 77 * of all JavaBeans<sup><font size="-2">TM</font></sup> 78 * has been added to the <code>java.beans</code> package. 79 * Please see {@link java.beans.XMLEncoder}. 80 * 81 * @beaninfo 82 * attribute: isContainer false 83 * description: A component which can display it's state as selected or deselected. |