• Post Reply Bookmark Topic Watch Topic
  • New Topic

Select JTable row, but disable any editing

 
Jennifer Bhamoo
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am having troubles figuring out how to make JTable cells uneditable, but at the same time being able to select an entire row. Any assistance is appreciated!
-Jennifer
 
Altaf Ahmad
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TableModel has a method which will take care of making cells editable or not.

JTable has a method which will let you set the selection mode:

Altaf
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!