aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Default table model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Default table model" Watch "Default table model" New topic
Author

Default table model

nisha Sham
Greenhorn

Joined: Jun 12, 2002
Posts: 19
I want to disabled the particular row/s in my table. How can I do this
EX: If there are 4 rows in my table and I need to disable the 2nd row . How it possible?
Please help. It would be most appreciated
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Moving to the Swing forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
nisha Sham
Greenhorn

Joined: Jun 12, 2002
Posts: 19
Yes I used Swing JTable.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Override the isCellEditable method. It takes a row and column as parameters check for the row and return false.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Default table model