code: private void addEnableControl(String text, ItemListener listener) {
  		JCheckBox enableControl = new JCheckBox("Enable " + text);
  		enableControl.setBounds(10, offset, 200, 20);
  		enableControl.addItemListener(listener);
  		add(enableControl);
  
  		controlToValueName.put(enableControl, text);
  		valueNameToControl.put(text, enableControl);
  		offset += 25;
  	}
docs: Add a control for enablement
  
  @param text The label to be associated with the check box
  @param listener The listener to be notified of updates to the new control