Win a copy of Functional Reactive Programming this week in the Other Languages 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