Program: 111565
Project: 111565
Buggy source:
public void itemStateChanged(ItemEvent e){
  Object s=e.getSource();
  if (s instanceof JCheckBox && (JCheckBox)s == autoSelect) {
    zrle.setEnabled(!autoSelect.isSelected());
    hextile.setEnabled(!autoSelect.isSelected());
    tight.setEnabled(!autoSelect.isSelected());
    raw.setEnabled(!autoSelect.isSelected());
    fullColour.setEnabled(!autoSelect.isSelected());
    mediumColour.setEnabled(!autoSelect.isSelected());
    lowColour.setEnabled(!autoSelect.isSelected());
    veryLowColour.setEnabled(!autoSelect.isSelected());
    defaults.setPref("String_Node_Str",(autoSelect.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JCheckBox && (JCheckBox)s == customCompressLevel) {
    compressLevel.setEnabled(customCompressLevel.isSelected());
    defaults.setPref("String_Node_Str",(customCompressLevel.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JCheckBox && (JCheckBox)s == noJpeg) {
    qualityLevel.setEnabled(noJpeg.isSelected());
    defaults.setPref("String_Node_Str",(noJpeg.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JComboBox && (JComboBox)s == scalingFactor) {
    autoScale=fixedRatioScale=false;
    if (scalingFactor.getSelectedItem().equals("String_Node_Str")) {
      autoScale=true;
    }
 else     if (scalingFactor.getSelectedItem().equals("String_Node_Str")) {
      fixedRatioScale=true;
    }
  }
  if (s instanceof JCheckBox && (JCheckBox)s == sendLocalUsername) {
    defaults.setPref("String_Node_Str",(sendLocalUsername.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JCheckBox && (JCheckBox)s == secVeNCrypt) {
    encNone.setEnabled(secVeNCrypt.isSelected());
    encTLS.setEnabled(secVeNCrypt.isSelected());
    encX509.setEnabled(secVeNCrypt.isSelected());
    ca.setEnabled(secVeNCrypt.isSelected());
    crl.setEnabled(secVeNCrypt.isSelected());
    secIdent.setEnabled(secVeNCrypt.isSelected());
    secNone.setEnabled(secVeNCrypt.isSelected());
    secVnc.setEnabled(secVeNCrypt.isSelected());
    secPlain.setEnabled(secVeNCrypt.isSelected());
    sendLocalUsername.setEnabled(secVeNCrypt.isSelected());
  }
  if (s instanceof JCheckBox && (JCheckBox)s == secIdent || s instanceof JCheckBox && (JCheckBox)s == secPlain) {
    sendLocalUsername.setEnabled(secIdent.isSelected() || secPlain.isSelected());
  }
}

Fixed version (ground truth):
public void itemStateChanged(ItemEvent e){
  Object s=e.getSource();
  if (s instanceof JCheckBox && (JCheckBox)s == autoSelect) {
    zrle.setEnabled(!autoSelect.isSelected());
    hextile.setEnabled(!autoSelect.isSelected());
    tight.setEnabled(!autoSelect.isSelected());
    raw.setEnabled(!autoSelect.isSelected());
    fullColour.setEnabled(!autoSelect.isSelected());
    mediumColour.setEnabled(!autoSelect.isSelected());
    lowColour.setEnabled(!autoSelect.isSelected());
    veryLowColour.setEnabled(!autoSelect.isSelected());
    if (!applet)     defaults.setPref("String_Node_Str",(autoSelect.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JCheckBox && (JCheckBox)s == customCompressLevel) {
    compressLevel.setEnabled(customCompressLevel.isSelected());
    if (!applet)     defaults.setPref("String_Node_Str",(customCompressLevel.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JCheckBox && (JCheckBox)s == noJpeg) {
    qualityLevel.setEnabled(noJpeg.isSelected());
    if (!applet)     defaults.setPref("String_Node_Str",(noJpeg.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JComboBox && (JComboBox)s == scalingFactor) {
    autoScale=fixedRatioScale=false;
    if (scalingFactor.getSelectedItem().equals("String_Node_Str")) {
      autoScale=true;
    }
 else     if (scalingFactor.getSelectedItem().equals("String_Node_Str")) {
      fixedRatioScale=true;
    }
  }
  if (s instanceof JCheckBox && (JCheckBox)s == sendLocalUsername) {
    if (!applet)     defaults.setPref("String_Node_Str",(sendLocalUsername.isSelected()) ? "String_Node_Str" : "String_Node_Str");
  }
  if (s instanceof JCheckBox && (JCheckBox)s == secVeNCrypt) {
    encNone.setEnabled(secVeNCrypt.isSelected());
    encTLS.setEnabled(secVeNCrypt.isSelected());
    encX509.setEnabled(secVeNCrypt.isSelected());
    ca.setEnabled(secVeNCrypt.isSelected());
    crl.setEnabled(secVeNCrypt.isSelected());
    secIdent.setEnabled(secVeNCrypt.isSelected());
    secNone.setEnabled(secVeNCrypt.isSelected());
    secVnc.setEnabled(secVeNCrypt.isSelected());
    secPlain.setEnabled(secVeNCrypt.isSelected());
    sendLocalUsername.setEnabled(secVeNCrypt.isSelected());
  }
  if (s instanceof JCheckBox && (JCheckBox)s == secIdent || s instanceof JCheckBox && (JCheckBox)s == secPlain) {
    sendLocalUsername.setEnabled(secIdent.isSelected() || secPlain.isSelected());
  }
}