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);

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact