views:

59

answers:

1

In my JTable is there a way to restrict the user in adjusting the height of the row or width of a column using the mouse.I am already using

JTable table=new JTable();
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.getTableHeader().setReorderingAllowed(false);

The table is inside a scroll panel.

+2  A: 

table.getTableHeader().setResizingAllowed(false);

Redlab