public void createDefaultColumnsFromModel(){
  DataLineModel<?,?> dlm=(DataLineModel<?,?>)dataModel;
  if (dlm != null) {
    TableColumnModel cm=getColumnModel();
    while (cm.getColumnCount() > 0) {
      cm.removeColumn(cm.getColumn(0));
    }
    for (int i=0; i < dlm.getColumnCount(); i++) {
      TableColumn newColumn=dlm.getTableColumn(i);
      if (newColumn != null) {
        addColumn(newColumn);
      }
    }
  }
}

public void createDefaultColumnsFromModel ( ) { DataLineModel < ? , ? > dlm = ( DataLineModel < ? , ? > ) dataModel ; if ( dlm != null ) { TableColumnModel cm = getColumnModel ( ) ; while ( cm . getColumnCount ( ) > 0 ) { cm . removeColumn ( cm . getColumn ( 0 ) ) ; } for ( int i = 0 ; i < dlm . getColumnCount ( ) ; i ++ ) { TableColumn newColumn = dlm . getTableColumn ( i ) ; if ( newColumn != null ) { addColumn ( newColumn ) ; } } } }
overrides jtable ' s default implementation in order to add limetablecolumn columns .
