void switchTwoColumnHeaders ( int columnIndex , int columnToIndex ) { Object cellData = getColumnHeaders ( ) [ columnToIndex ] ; getColumnHeaders ( ) [ columnToIndex ] = getColumnHeaders ( ) [ columnIndex ] ; getColumnHeaders ( ) [ columnIndex ] = cellData ; }
Switch 2 columns headers with data