File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Check box in a Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Check box in a Table " Watch "Check box in a Table " New topic
Author

Check box in a Table

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
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.


~ Anand,
SCJP 1.5, SCWCD 1.5
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

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 ]

The Best way to predict your future is to create it - Every great individual common man
Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check box in a Table