public void removeAllElements(){
synchronized (hrefList) {
    hrefList.clear();
    fireTableDataChanged();
  }
}

public void removeAllElements ( ) { synchronized ( hrefList ) { hrefList . clear ( ) ; fireTableDataChanged ( ) ; } }
removes all the elements . method is synchronized internally .
