This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make JTable non docable?

 
Saurabh S Pingle
Greenhorn
Posts: 3
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Selva. This solves my problem.
Thanx once again.
regds.,
Saurabh
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic