Use a CheckboxMenuItem bean to provide a menu setting choice that the user can toggle on and off.
Use a JCheckBoxMenuItem bean, rather than a CheckboxMenuItem bean, if you want to use it in a Swing menu. Although Swing and AWT beans can be mixed, it is inadvisable.
Adding a Menu or Tool Bar
Menu and Tool Bar Beans
Beans for Visual Composition