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