vendredi 26 juin 2015

Set Jtable Cell Disable or Enable based on condition?

I have a JTable, it has 4 columns, the last column is checkbox column. I want to make the checkbox enable or disable, based on condition.

Consider that the last column value(Check box value) is true, then user is not allowed to unselect the checkbox. if value is false, then user allowed to select the checkbox.

Is there any way?. I am tried table iscellEditable(), setRowSelectionAllowed(). But, these methods are not fulfill my concept.




Aucun commentaire:

Enregistrer un commentaire