I have declared my JTable
as:
data_table = new JTable(info, header) {
@Override
public boolean isCellEditable(int row, int column) {
data_table.getTableHeader().setReorderingAllowed(false);
should do the job, unless you mean that the user can resize column headers.
To anyone having this problem using Netbeans IDE you can disable the user from dragging columns in the JTable by doing the following steps.