Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!