File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no moveable columns in jtable

 
Steffen Durale
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get the table header and use the setReorderingAllowed method.
tableName.getTableHeader().setReorderingAllowed(false)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic