samedi 29 février 2020

How to disable multiple checkboxes in javafx

I have 40 checkboxes and I need to disable some depending on a variable ArrayList. Is there is a way to do this in JavaFX?

List<Integer> aList = new ArrayList<Integer>(){add(2);};

CheckBox s01, s02, s03;
s01 =new CheckBox("S01");s02 =new CheckBox("S02");s03 =new CheckBox("S03");

(if x is found in aList disable Checkbox sx) 



Aucun commentaire:

Enregistrer un commentaire