public static JMenuItem addSetting(JMenu parent,final String name,BooleanSetting setting){
  JMenuItem item=new SkinCheckBoxMenuItem(name,setting.getValue());
  item.putClientProperty(SETTING,setting);
  item.addActionListener(SETTING_LISTENER);
  parent.add(item);
  return item;
}

public static JMenuItem addSetting ( JMenu parent , final String name , BooleanSetting setting ) { JMenuItem item = new SkinCheckBoxMenuItem ( name , setting . getValue ( ) ) ; item . putClientProperty ( SETTING , setting ) ; item . addActionListener ( SETTING_LISTENER ) ; parent . add ( item ) ; return item ; }
creates & adds a checkbox - setting with a listener .
