user3710745
user3710745

Reputation:

JavaFX ScrollPane setEditable()

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

Answers (1)

Felix Gerber
Felix Gerber

Reputation: 1651

This should fix your problem:

private void setBoxesEditable(boolean state)
{
    for (CheckBox checkBox : allBoxes) {
        checkBox.setDisable(!state);
        checkBox.setOpacity(20);
    }
}

Upvotes: 0

Related Questions