oldSel = sel.clone(); int sz = sel.size(); sel.clear(); if (sel.equals(oldSel) == false) fireValueChanged(0, sz, valueIsAdjusting);
int from = sel.nextSetBit(0); if (from < 0) return; int to = from;  int i;  Up: for (i = from; i>=0; i=sel.nextSetBit(i+1)) to = i;  fireValueChanged(from, to, valueIsAdjusting);
  public void clearSelection()  {    oldSel = sel.clone();    int sz = sel.size();    sel.clear();    if (sel.equals(oldSel) == false)    fireValueChanged(0, sz, valueIsAdjusting);  }