Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

check box in JTable

 
Suhas Mohamedali
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please help to make the selected row non editable if the check box in the row is unchecked and editable otherwise.

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
override isCellEditable(..)
to return the value at that row of the
checkbox column
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic