private JCheckBoxMenuItem createCheckItem(Container c,String txt,boolean selected,String setting){
  Settings s=new Settings(gui.MainWindow.GUI_NS);
  JCheckBoxMenuItem i=new JCheckBoxMenuItem(txt);
  if (setting == null) {
    i.setSelected(selected);
  }
 else {
    i.setSelected(s.getBoolean(setting,selected));
  }
  i.addActionListener(this);
  c.add(i);
  return i;
}

private JCheckBoxMenuItem createCheckItem ( Container c , String txt , boolean selected , String setting ) { Settings s = new Settings ( gui . MainWindow . GUI_NS ) ; JCheckBoxMenuItem i = new JCheckBoxMenuItem ( txt ) ; if ( setting == null ) { i . setSelected ( selected ) ; } else { i . setSelected ( s . getBoolean ( setting , selected ) ) ; } i . addActionListener ( this ) ; c . add ( i ) ; return i ; }
creates a new check box menu item to the given container
