Use a CheckboxMenuItem bean
to provide a menu setting choice that the user can toggle on and off.
Adding a menu or tool bar
Sun's CheckboxMenuItem bean documentation
Menu and tool bar beans
Beans for visual composition