It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes no moveable columns in jtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "no moveable columns in jtable" Watch "no moveable columns in jtable" New topic

no moveable columns in jtable

Steffen Durale

Joined: May 25, 2001
Posts: 13
hi there,
i have a very very simple problem, but i dont find something about it.
i have a jtable with 5 columns. i dont want that you can move the columns ( e.g. that you move the first column behind the third column ). they should be static in the same order.
any ideas?
thanx in advance
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Get the table header and use the setReorderingAllowed method.
I agree. Here's the link:
subject: no moveable columns in jtable
It's not a secret anymore!