public static Object [ ] getAt ( TableModel self , int index ) { int cols = self . getColumnCount ( ) ; Object [ ] rowData = new Object [ cols ] ; for ( int col = 0 ; col < cols ; col ++ ) { rowData [ col ] = self . getValueAt ( index , col ) ; } return rowData ; }
Support the subscript operator for TableModel .