Reputation:
I'm searching for a way to get my ScrollPane not editable but I don't want it to change its color. The problem is that setDiasabled()
is changing the color.
Any idea how to do this?
Thanks in advance!
Upvotes: 1
Views: 185
Reputation: 1651
This should fix your problem:
private void setBoxesEditable(boolean state)
{
for (CheckBox checkBox : allBoxes) {
checkBox.setDisable(!state);
checkBox.setOpacity(20);
}
}
Upvotes: 0