I have a simple fxml with a textfield and a button. I\'d like to have the button disabled if the textfield is empty. So I insert something like the following in my controlle
In addition to Andreys approach, I found that you can also do it like this:
BooleanBinding booleanBinding = textField.textProperty().isEqualTo("").or( textField2.textProperty().isEqualTo("")); button.disableProperty().bind(booleanBinding);