dcsimg

How do I disable the reodering of table columns in a JTable?

John Zukowski

This is an attribute of the table header (JTableHeader). You need to call setReoderingAllowed() with an argument of false. By default, this is enabled.


getTableHeader().setReorderingAllowed(false);