• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to prevent cell editing of a partyicular cell in a jtable  RSS feed

 
mahesh narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

I am using a JTable and using a cell editor(checkbox cell editor) for a particular column. Now i want to prevent cell editing for the first row alone.any possible solutions for the same.

tx
Mahesh
 
Eric Snell
Greenhorn
Posts: 28
Java Mac MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Override and return false when the row is 0.

or

Override and return false when the row is 0.

Those are probably the most straightforward ways.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!