• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check box in a Table

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JTable with first column as checkbox. So I have returned Boolean.class in getColumnClass() for first column and set first column as editable. So its working fine means I can check/uncheck checkbox.
Now problem is I want to disable some of checkboxes on some preconditions, but I am unable to disable them.
Please help me in this problem.
Regards,
Anand.
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anand Loni:
Hi,
I have a JTable with first column as checkbox. So I have returned Boolean.class in getColumnClass() for first column and set first column as editable. So its working fine means I can check/uncheck checkbox.
Now problem is I want to disable some of checkboxes on some preconditions, but I am unable to disable them.
Please help me in this problem.
Regards,
Anand.


Try this one...

THis might helps you.




Hope this helps you out.
[ September 25, 2006: Message edited by: Ankur Sharma ]
 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic