I was looking at these two examples and I was curious what the difference is between JCheckBox and JCheckBoxMenuItem.
http://www.macs.hw.ac.uk/cs/java-swing-guidebook/?name=JMenuBar&page=3
https://docs.oracle.com/javase/tutorial/displayCode.html?code=https://docs.oracle.com/javase/tutorial/uiswing/examples/components/CheckBoxDemoProject/src/components/CheckBoxDemo.java
These pictures make it look they are the same except JCheckBox is not in a menu but it is easy to add to a menu with the menu_name.add(menu_item) command. Is that correct?
http://www.javaperspective.com/menus.html
http://www.tutorialspoint.com/swing/swing_jcheckbox.htm