File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to prevent cell editing of a partyicular cell in a jtable