I would like to disable certain columns in my JTable, I know how to disable them all, but this is not what I need. I Have 4 columns
The 'Accepted' column is a checkbox and I would like that to stay editable but the rest should not. Any ideas?
|Name | Address | Phone | Accepted |
-----------------------------------------
Bob Random 45678 Yes
Thanks you :)
I figured it out
public boolean isCellEditable(int row, int column) {
return column == 3;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With