This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
jQuery in Action, 3rd edition