Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make JTable non docable?

 
Saurabh S Pingle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to make a JTable non-docable?
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you mean with _non_-docable? why don't you put the table in its own frame?
chantal
 
Saurabh S Pingle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non docable means two Table columns cannot be swapped with their respective position.So if a Jtable has n number of columns one cannot change their position i.e column positions are fixed.
 
selvas kumars
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saurabh,
you can try out this one..
table.getTableHeader().setReorderingAllowed(false);
Regards,
silva.
 
Saurabh S Pingle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Selva. This solves my problem.
Thanx once again.
regds.,
Saurabh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic