if (selected == index) { if (selected > 0) selectedItem = getElementAt(selected - 1); else selectedItem = getElementAt(selected);   }
  public void removeElementAt(int index)  {    list.remove(index);    fireIntervalRemoved(this, index, index);  }