Original report by Andreas Liebelt (Bitbucket: aliebelt, GitHub: aliebelt).
At validation initialization there is no validation anymore. Type some text into the textfield and delete it and the validation will then work. With 8.0.6_20 this was working.
#!java
public class InitialValidationIsNotExecutedErrorRunTest extends Application {
public void start(Stage primaryStage) throws Exception {
TextField textField = new TextField();
primaryStage.setScene(new Scene(textField));
primaryStage.show();
new ValidationSupport().registerValidator(textField, false, Validator.createEmptyValidator("No initial validation!"));
}
public static void main(String[] args) {
launch(args);
}
}
该提问来源于开源项目:controlsfx/controlsfx