TextField textField = new TextField();
textField .setPromptText("0");
textField .setAlignment(Pos.CENTER);
textField .setPrefColumnCount(10);
In this case the PromptText had to follow the alignment of text
textField .setPromptText("0");
textField .setAlignment(Pos.CENTER);
textField .setPrefColumnCount(10);
In this case the PromptText had to follow the alignment of text
- relates to
-
JDK-8100686 [TextField, TextArea] Prompt text is not removed when the control gets focus
-
- Resolved
-
-
JDK-8127445 TextField text alignment fails when delayed setText() call with alignment = Pos.CENTER
-
- Resolved
-