Results 1 to 2 of 2
Thread: JCheckbox in a Jtable Column
- 04-25-2010, 10:58 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 2
- Rep Power
- 0
JCheckbox in a Jtable Column
In my Table I am getting the Check box by adding the method
view plaincopy to clipboardprint?
getColumnClass()
{
returning Boolean.CLass for col no 10,11,13
for rest it is returning String.Class
} This code is in my AbstractTableModel Class
I am also setting Value in getValueAt() method{
if Col==10
then Check if Variable a == Y,
return new Boolean(True)
else
return new Boolean(false)
}
but the problem is my that check box is not getting checked after loading the Table and neither it is getting checked on clicking on the Check box please help.
- 04-25-2010, 12:45 PM #2
Member
- Join Date
- Jul 2008
- Posts
- 62
- Rep Power
- 0
Similar Threads
-
How to add a jcheckbox in jtable
By lakshayghai in forum AWT / SwingReplies: 9Last Post: 04-14-2010, 11:32 PM -
split a jtable column
By anilkumar_vist in forum Advanced JavaReplies: 0Last Post: 12-14-2009, 10:29 AM -
split jtable column
By anilkumar_vist in forum Advanced JavaReplies: 3Last Post: 11-30-2009, 02:14 PM -
JCheckBox in JTable column
By hind in forum New To JavaReplies: 8Last Post: 01-04-2009, 07:40 PM -
How to sort column in JTable
By johnt in forum AWT / SwingReplies: 3Last Post: 06-14-2008, 05:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks