question: public void columnAdded ( TableColumnModelEvent e ) { LimeTableColumn addedColumn = getToColumn ( e ) ; LimeTableColumn ltc = addedColumn ; setVisibility ( ltc , true ) ; TableColumnModel tcm = table . getColumnModel ( ) ; int order = getOrder ( ltc ) ; int current = tcm . getColumnIndex ( ltc . getId ( ) ) ; int max = tcm . getColumnCount ( ) ; if ( order != current ) { stopListening ( ) ; order = Math . min ( order , max - 1 ) ; tcm . moveColumn ( current , order ) ; for ( current = order + 1 ; current < max ; current ++ ) { ltc = ( LimeTableColumn ) tcm . getColumn ( current ) ; setOrder ( ltc , current ) ; } for ( Iterator < LimeTableColumn > i = table . getHiddenColumns ( ) ; i . hasNext ( ) ; ) { ltc = i . next ( ) ; current = getOrder ( ltc ) ; if ( current > order ) setOrder ( ltc , current + 1 ) ; } startListening ( ) ; } if ( listener != null ) listener . columnAdded ( addedColumn , table ) ; save ( ) ; }
target:  Triggered from a column being added. The 'to' index of the TableColumnModelEvent is the index in the TableColumn of the newly added column.