public List<T> asFlatList(){
  List<T> list=new ArrayList<T>();
  for (int i=0; i < getRowCount(); i++) {
    for (int j=0; j < getColumnCount(); j++) {
      list.add(getLogicalValueAt(i,j));
    }
  }
  return list;
}

public List < T > asFlatList ( ) { List < T > list = new ArrayList < T > ( ) ; for ( int i = 0 ; i < getRowCount ( ) ; i ++ ) { for ( int j = 0 ; j < getColumnCount ( ) ; j ++ ) { list . add ( getLogicalValueAt ( i , j ) ) ; } } return list ; }
returns the contents of the table as a flat list .
