• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Problem  RSS feed

 
Ali Hassaan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I stop anyone from editing JTable on runtime.
Not on any specific event.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could create your own DefaultTableModel and override the isCellEditable() method to always return false.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!