Create a TextField like:
final TextField textfield = new TextField();
textfield.setText("foo");
textfield.setAlignment(Pos.CENTER_RIGHT);
With Platform.isSupported(ConditionalFeature.INPUT_TOUCH) == true, set via VM argument "-Dcom.sun.javafx.touch=true" the TextFieldSkin renders the Handles and the textselection with a big offset from the Node, when text alignment is *_RIGHT.
I found no workaround/solultion so far except for not displaying the handles.
final TextField textfield = new TextField();
textfield.setText("foo");
textfield.setAlignment(Pos.CENTER_RIGHT);
With Platform.isSupported(ConditionalFeature.INPUT_TOUCH) == true, set via VM argument "-Dcom.sun.javafx.touch=true" the TextFieldSkin renders the Handles and the textselection with a big offset from the Node, when text alignment is *_RIGHT.
I found no workaround/solultion so far except for not displaying the handles.