How to disconnect only one column from drag and drop in JTable? I want other columns to be dragged, but only the first column (with index 0). Thank.
You must create your own TableColumnModel (extend DefaultTableColumnModel ) and override moveColumn to only call super.moveColumn when the column is allowed to drag.
TableColumnModel
moveColumn
super.moveColumn
EDIT : Check out this post first .
Not really for you .... found in another blog
yourJTable.getTableHeader().setReorderingAllowed(false)
this will cause the whole table to not reorder the columns that I need. The source route is the correct route.