I have declared my JTable as:
JTable
data_table = new JTable(info, header) { @Override public boolean isCellEditable(int row, int column) {
To anyone having this problem using Netbeans IDE you can disable the user from dragging columns in the JTable by doing the following steps.