This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no moveable columns in jtable

 
Steffen Durale
Greenhorn
Posts: 13
  • 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
  • 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