Win a copy of Rust Web Development this week in the Other Languages forum!

Suma Gopalakrishna

Greenhorn
+ Follow
since Apr 10, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suma Gopalakrishna

I agree with Rob and Brian. I was able to solve the problem by using (Boolean)mytable.getValueAt(i,0); I had used it earlier somehow didnt strike while debugging the present code. I have different instances of cell editors for different rows in JComboBox and works fine. Why should same cellEditor instance be used for JCheckBox. I feel there is a bug in java swings's JCheckBox. Using TableModel or Key Released Event of JTable are different ways of accessing and modifying the individual cells in JTable.
2 years ago
If I add a row and first column is a JCheckBox, if I select JCheckBox of even one row, the isSelected() of JCheckBox of all rows returns true.


JCheckBox for i=0 is not checked
JCheckBox for i=1is checked
JCheckBox for i=2 is not checked
Expected output is
false
true
false
Actual Output is
true
true
true
2 years ago