private void init ( ) { if ( initialized . compareAndSet ( false , true ) ) { final RowSorter < ? extends TableModel > rowSorter = table . getRowSorter ( ) ; rowSorter . toggleSortOrder ( 1 ) ; // sort by date rowSorter . toggleSortOrder ( 1 ) ; // descending final TableColumnModel columnModel = table . getColumnModel ( ) ; columnModel . getColumn ( 1 ) . setCellRenderer ( dateRenderer ) ; columnModel . getColumn ( 2 ) . setCellRenderer ( sizeRenderer ) ; } }
Initializes the model