int lo = Math.min(index0, index1); int hi = Math.max(index0, index1);
int lo = Math.min(anchor, lead); int hi = Math.max(anchor, lead);
  public void setSelectionInterval(int index0, int index1)  {    if (index0 == -1 || index1 == -1)      return;        BitSet oldSel = (BitSet) sel.clone();    sel.clear();    if (selectionMode == SINGLE_SELECTION)      index0 = index1;    int lo = Math.min(index0, index1);    int hi = Math.max(index0, index1);    sel.set(lo, hi+1);    // update the anchorSelectionIndex and leadSelectionIndex variables    setAnchorSelectionIndex(index0);    leadSelectionIndex=index1;        fireDifference(sel, oldSel);  }