This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Consider Paul's rocket mass heater.
 
subject: Check box in a Table
 
Similar Threads
Exception when using JSTL <c:out> with EL expressions
Freeze Pane in JTable
Check Box issue in javascript sorting
jtable checkbox header and checkbox in cell (event)
disabling checkbox