• Post Reply Bookmark Topic Watch Topic
  • New Topic

Columns Dragging in a JTable

 
Flavio Nobili
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,
I have a JTable wich I want to avoid the user to drag columns. How can I do that?

Regards,
Fl�vio.
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
myTable.getTableHeader().setReorderingAllowed(false);
Google is your friend...
D.
 
Flavio Nobili
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Don. It really helped!
Rgs,
Fl�vio.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!