File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: no moveable columns in jtable