jtable & columns

i donot want to move the columns of my table. how to do it? please pass on the info. usually it's done using mouse and i wnt to prevent that.thanx
[168 byte] By [charanjay] at [2007-9-26 2:27:30]
# 1
Try this for your table to stop columns being movedJTable myTable = new JTable();myTable.getTableHeader().setReorderingAllowed(false);
paulradziwonik at 2007-6-29 9:41:50 > top of Java-index,Archived Forums,Swing...
# 2
thanks paul,it worked
charanjay at 2007-6-29 9:41:50 > top of Java-index,Archived Forums,Swing...