Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

No editting to the JTable  RSS feed

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Could you please tell me is there a possible way of stop editting of a JTable cell. I mean the user can't do any thing to the cell. I mean can't type delete etc anything. If it is possible please tell me how do this.
Thanks inadvance..
 
Abhik Sarkar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ransika,
If you have written your own table model, you will need to make sure that you override the isCellEditable method and always return false, like so...

HTH,
Abhik.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!