This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Select JTable row, but disable any editing  RSS feed

 
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!