public void setChecked(final int index, final boolean isSelected) {
    m_selected[index] = isSelected;

    updateUI();

    fireSelectionValueChanged(index, index, false);
  }
Keeps track of what list items are m_selected.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/JCheckedListbox.java