36 37 import javax.swing.plaf.*; 38 import javax.accessibility.*; 39 40 /** 41 * An implementation of a radio button menu item. 42 * A <code>JRadioButtonMenuItem</code> is 43 * a menu item that is part of a group of menu items in which only one 44 * item in the group can be selected. The selected item displays its 45 * selected state. Selecting it causes any other selected item to 46 * switch to the unselected state. 47 * To control the selected state of a group of radio button menu items, 48 * use a <code>ButtonGroup</code> object. 49 * <p> 50 * Menu items can be configured, and to some degree controlled, by 51 * <code><a href="Action.html">Action</a></code>s. Using an 52 * <code>Action</code> with a menu item has many benefits beyond directly 53 * configuring a menu item. Refer to <a href="Action.html#buttonActions"> 54 * Swing Components Supporting <code>Action</code></a> for more 55 * details, and you can find more information in <a 56 * href="http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html">How 57 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 58 * <p> 59 * For further documentation and examples see 60 * <a 61 href="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html">How to Use Menus</a>, 62 * a section in <em>The Java Tutorial.</em> 63 * <p> 64 * <strong>Warning:</strong> Swing is not thread safe. For more 65 * information see <a 66 * href="package-summary.html#threading">Swing's Threading 67 * Policy</a>. 68 * <p> 69 * <strong>Warning:</strong> 70 * Serialized objects of this class will not be compatible with 71 * future Swing releases. The current serialization support is 72 * appropriate for short term storage or RMI between applications running 73 * the same version of Swing. As of 1.4, support for long term storage 74 * of all JavaBeans<sup><font size="-2">TM</font></sup> 75 * has been added to the <code>java.beans</code> package. 76 * Please see {@link java.beans.XMLEncoder}. 77 * 78 * @beaninfo 79 * attribute: isContainer false 80 * description: A component within a group of menu items which can be selected. 81 * | 36 37 import javax.swing.plaf.*; 38 import javax.accessibility.*; 39 40 /** 41 * An implementation of a radio button menu item. 42 * A <code>JRadioButtonMenuItem</code> is 43 * a menu item that is part of a group of menu items in which only one 44 * item in the group can be selected. The selected item displays its 45 * selected state. Selecting it causes any other selected item to 46 * switch to the unselected state. 47 * To control the selected state of a group of radio button menu items, 48 * use a <code>ButtonGroup</code> object. 49 * <p> 50 * Menu items can be configured, and to some degree controlled, by 51 * <code><a href="Action.html">Action</a></code>s. Using an 52 * <code>Action</code> with a menu item has many benefits beyond directly 53 * configuring a menu item. Refer to <a href="Action.html#buttonActions"> 54 * Swing Components Supporting <code>Action</code></a> for more 55 * details, and you can find more information in <a 56 * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How 57 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 58 * <p> 59 * For further documentation and examples see 60 * <a 61 href="http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>, 62 * a section in <em>The Java Tutorial.</em> 63 * <p> 64 * <strong>Warning:</strong> Swing is not thread safe. For more 65 * information see <a 66 * href="package-summary.html#threading">Swing's Threading 67 * Policy</a>. 68 * <p> 69 * <strong>Warning:</strong> 70 * Serialized objects of this class will not be compatible with 71 * future Swing releases. The current serialization support is 72 * appropriate for short term storage or RMI between applications running 73 * the same version of Swing. As of 1.4, support for long term storage 74 * of all JavaBeans<sup><font size="-2">TM</font></sup> 75 * has been added to the <code>java.beans</code> package. 76 * Please see {@link java.beans.XMLEncoder}. 77 * 78 * @beaninfo 79 * attribute: isContainer false 80 * description: A component within a group of menu items which can be selected. 81 * |