File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Default table model" Watch "Default table model" New topic

Default table model

nisha Sham

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"

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

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

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.
I agree. Here's the link:
subject: Default table model
It's not a secret anymore!