42 * A menu item that can be selected or deselected. If selected, the menu 43 * item typically appears with a checkmark next to it. If unselected or 44 * deselected, the menu item appears without a checkmark. Like a regular 45 * menu item, a check box menu item can have either text or a graphic 46 * icon associated with it, or both. 47 * <p> 48 * Either <code>isSelected</code>/<code>setSelected</code> or 49 * <code>getState</code>/<code>setState</code> can be used 50 * to determine/specify the menu item's selection state. The 51 * preferred methods are <code>isSelected</code> and 52 * <code>setSelected</code>, which work for all menus and buttons. 53 * The <code>getState</code> and <code>setState</code> methods exist for 54 * compatibility with other component sets. 55 * <p> 56 * Menu items can be configured, and to some degree controlled, by 57 * <code><a href="Action.html">Action</a></code>s. Using an 58 * <code>Action</code> with a menu item has many benefits beyond directly 59 * configuring a menu item. Refer to <a href="Action.html#buttonActions"> 60 * Swing Components Supporting <code>Action</code></a> for more 61 * details, and you can find more information in <a 62 * href="http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html">How 63 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 64 * <p> 65 * For further information and examples of using check box menu items, 66 * see <a 67 href="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html">How to Use Menus</a>, 68 * a section in <em>The Java Tutorial.</em> 69 * <p> 70 * <strong>Warning:</strong> Swing is not thread safe. For more 71 * information see <a 72 * href="package-summary.html#threading">Swing's Threading 73 * Policy</a>. 74 * <p> 75 * <strong>Warning:</strong> 76 * Serialized objects of this class will not be compatible with 77 * future Swing releases. The current serialization support is 78 * appropriate for short term storage or RMI between applications running 79 * the same version of Swing. As of 1.4, support for long term storage 80 * of all JavaBeans<sup><font size="-2">TM</font></sup> 81 * has been added to the <code>java.beans</code> package. 82 * Please see {@link java.beans.XMLEncoder}. 83 * 84 * @beaninfo 85 * attribute: isContainer false 86 * description: A menu item which can be selected or deselected. 87 * | 42 * A menu item that can be selected or deselected. If selected, the menu 43 * item typically appears with a checkmark next to it. If unselected or 44 * deselected, the menu item appears without a checkmark. Like a regular 45 * menu item, a check box menu item can have either text or a graphic 46 * icon associated with it, or both. 47 * <p> 48 * Either <code>isSelected</code>/<code>setSelected</code> or 49 * <code>getState</code>/<code>setState</code> can be used 50 * to determine/specify the menu item's selection state. The 51 * preferred methods are <code>isSelected</code> and 52 * <code>setSelected</code>, which work for all menus and buttons. 53 * The <code>getState</code> and <code>setState</code> methods exist for 54 * compatibility with other component sets. 55 * <p> 56 * Menu items can be configured, and to some degree controlled, by 57 * <code><a href="Action.html">Action</a></code>s. Using an 58 * <code>Action</code> with a menu item has many benefits beyond directly 59 * configuring a menu item. Refer to <a href="Action.html#buttonActions"> 60 * Swing Components Supporting <code>Action</code></a> for more 61 * details, and you can find more information in <a 62 * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How 63 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 64 * <p> 65 * For further information and examples of using check box menu items, 66 * see <a 67 href="http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html">How to Use Menus</a>, 68 * a section in <em>The Java Tutorial.</em> 69 * <p> 70 * <strong>Warning:</strong> Swing is not thread safe. For more 71 * information see <a 72 * href="package-summary.html#threading">Swing's Threading 73 * Policy</a>. 74 * <p> 75 * <strong>Warning:</strong> 76 * Serialized objects of this class will not be compatible with 77 * future Swing releases. The current serialization support is 78 * appropriate for short term storage or RMI between applications running 79 * the same version of Swing. As of 1.4, support for long term storage 80 * of all JavaBeans<sup><font size="-2">TM</font></sup> 81 * has been added to the <code>java.beans</code> package. 82 * Please see {@link java.beans.XMLEncoder}. 83 * 84 * @beaninfo 85 * attribute: isContainer false 86 * description: A menu item which can be selected or deselected. 87 * |