import javafx.application.Application;
import javafx.application.Platform;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class IMEBug extends Application {

    public static void main(String[] args) {
        Application.launch(args);
    }

    private final TextField typing = new TextField();
    private final TextArea logArea = new TextArea("");

    @Override
    public void start(Stage stage) {
        VBox root = new VBox();
        root.setPadding(new Insets(5));
        root.setSpacing(5);
        VBox.setVgrow(logArea, Priority.ALWAYS);
        root.getChildren().addAll(typing, logArea);

        Scene scene = new Scene(root, 640, 640);
        stage.setScene(scene);
        stage.show();

        Platform.runLater(typing::requestFocus);
    }
}
