val doDisable = booleanBinding(editor.textProperty()) { value.trim { it <= ' ' }.isEmpty() } okButton.disableProperty().bind(doDisable)