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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to prevent cell editing of a partyicular cell in a jtable
 
Similar Threads
JTable
JTable cell Editor/Renderer Question
JTable
Disable Enter key in JTable
cell editing in JTable