public void clear(){
  int size=items.size();
  if (size > 0) {
    items.clear();
    fireTableRowsDeleted(0,size - 1);
  }
}

public void clear ( ) { int size = items . size ( ) ; if ( size > 0 ) { items . clear ( ) ; fireTableRowsDeleted ( 0 , size - 1 ) ; } }
clear the contents of the model .
