• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to avoid column's position change in jTable  RSS feed

 
Sachindra Pratap
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
write an application in which i display a JTable containig result from database. Everything works fine but i discover that JTable gives the user a chance to change columns' positions when the JTable is displayed. i want to prevent the user from doing this change in JTable's columns positions. How can i perform that.
Many thanks
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
table.getTableHeader.setReorderingAllowed(false) should do the trick.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!