@ Override public void setModel ( TableModel model ) { super . setModel ( model ) ; int columns = model . getColumnCount ( ) ; TableColumnModel tableColumnModel = getColumnModel ( ) ; for ( int index = 0 ; index < columns ; index ++ ) { tableColumnModel . getColumn ( index ) . setPreferredWidth ( m_columnWidth ) ; } }
Updates the model . Ensures that we reset the columns widths .