Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "no moveable columns in jtable" Watch "no moveable columns in jtable" New topic
Author

no moveable columns in jtable

Steffen Durale
Greenhorn

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
Steffen
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Get the table header and use the setReorderingAllowed method.
tableName.getTableHeader().setReorderingAllowed(false)
 
jQuery in Action, 2nd edition
 
subject: no moveable columns in jtable
 
Similar Threads
JTable
JTable
JTable
JTable
jtable