I have a for
loop, in which I create a new checkBox
every time it goes through the loop. I'm adding these checks inside an item of treeTableView
. I wanted to know how I could mark all the created checks.
How can I retrieve "the value (the checkBox)" to be able to select?
The creation of the check is as follows:
for (int y = 0; y < lista.size(); y++) {
CheckBoxW checkBoxW = new CheckBoxW();
item = new TreeItem<?>(gp, new HBox(checkBoxW, label));
}