Whatever the value of these options is will be saved to a file when the program closes. The file will be read when the program starts and the values set to the boolean read in. (ie. a check mark appears next to an item if the value read in is true, and one isn't there if the value is false).
use JCheckBoxMenuItem.setSelected(boolean b),
isSelected()
setSelected
before any ofListener
added toJCheckBoxMenuItem
, becausePropertyChangeListener
can firing an proper event frompropertyChange
in the case that value is sets later, sure depends of what do you really want to doI'm would be used
Swing Action
,ItemListener
,ActionListener
for JButtonComponents