Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default table model

 
nisha Sham
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Swing forum.
 
nisha Sham
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I used Swing JTable.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Override the isCellEditable method. It takes a row and column as parameters check for the row and return false.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic