Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Check box in a Table

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1249
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic