This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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