aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to prevent cell editing of a partyicular cell in a jtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to prevent cell editing of a partyicular cell in a jtable" Watch "how to prevent cell editing of a partyicular cell in a jtable" New topic
Author

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

mahesh narayan
Ranch Hand

Joined: Aug 12, 2003
Posts: 41
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

Joined: Jun 09, 2004
Posts: 28

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to prevent cell editing of a partyicular cell in a jtable