public boolean addRow(TableEntry entry){
  try {
    int row=list.size();
    list.add(entry);
    fireTableRowsInserted(row,row);
  }
 catch (  Exception e) {
    return false;
  }
  return true;
}

public boolean addRow ( TableEntry entry ) { try { int row = list . size ( ) ; list . add ( entry ) ; fireTableRowsInserted ( row , row ) ; } catch ( Exception e ) { return false ; } return true ; }
add a row to the list and the table .
