Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic