import javafx.application.Application; import javafx.geometry.NodeOrientation; import javafx.scene.Group; import javafx.scene.Scene; import javafx.stage.Stage; import javafx.scene.control.TextField; public class BidiTextField extends Application { static final String bidiStr = "abc \u05e4\u05d9\u05d2\u05de\u05ea def"; public static void main(String[] args) { Application.launch(BidiTextField.class, args); } public void start(Stage stage) { Group pane = new Group(); TextField textfield = new TextField(bidiStr); pane.getChildren().addAll(textfield); Scene scene = new Scene(pane, 200, 100); scene.setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT); stage.setScene(scene); stage.show(); } }