/** * init fxml when loaded. */ @PostConstruct public void init() { validatedText.focusedProperty().addListener((o, oldVal, newVal) -> { if (!newVal) { validatedText.validate(); } }); validatedPassowrd.focusedProperty().addListener((o, oldVal, newVal) -> { if (!newVal) { validatedPassowrd.validate(); } }); jfxTextArea.focusedProperty().addListener((o, oldVal, newVal) -> { if (!newVal) { jfxTextArea.validate(); } }); }
passwordField.focusedProperty().addListener((o, oldVal, newVal) -> { if (!newVal) { passwordField.validate();