How can I disable the checkbox contained in a table?

0

I'm starting with java and I had a problem, I have a table that is populated through a MYSQL database, this data is inserted through the "addRow ()" function where I also add a checkbox the problem is I want to disable the checkbox so that the user is not able to change their status, however I have not found information about how to do it.

    
asked by miguel vega 04.08.2018 в 03:21
source

1 answer

0

Look at me to disable a component in jform, for example I made a function in the form, enable_checkbox (boolean state) {     jCheckBox1.setEnabled (false); } see if it works :).

    
answered by 04.08.2018 в 03:52