list.clear(); fireIntervalAdded(this, 0, listSize - 1);
fireIntervalAdded(this, 0, listSize);
  public void removeAllElements()  {    int listSize = getSize();    list.clear();    fireIntervalAdded(this, 0, listSize - 1);  }