JTables

I have managed to make a JTable not edittable in itself, by setting the default edittor to null.

My question is, how do I prevent the user from being able to shift the columns around? At the moment, if a column is dragged to the (for example) left, it swaps places with the column currently to the left of it. I don't want this.

Thank-you in advance.

[370 byte] By [abu5ea] at [2007-11-26 17:38:51]
# 1
This method exists under JTableHeader:setReorderingAllowed(boolean reorderingAllowed)
zadoka at 2007-7-9 0:07:01 > top of Java-index,Java Essentials,Java Programming...
# 2
Ah ok, I was putting the header in separately because it's inside a JTextPane, so I didn't think to look under that.Thanks a lot.
abu5ea at 2007-7-9 0:07:01 > top of Java-index,Java Essentials,Java Programming...