182183184185186187188189190191192
} } for(int i = 0; i < 6; i++) // switches the order of the columns to the default order { jtSpread.moveColumn(6, i); } for(int i = 0; i < names.length; i++) { jtSpread.getColumnModel().getColumn(i).setHeaderValue(names[i]);