I\'m trying to find an efficient way to influence the shape and the content of the JavaFX GUI elements, such as simple Pane, with use of multithreading. Let\'s say
Pane
You can access the scene only from the JavaFX application thread. You need to wrap your code that accesses the scene graph in Platform.runLater():
Platform.runLater()
Platform.runLater(() -> { Circle circle = new Circle(50, 50, 10, Color.RED); pane.getChildren().clear(); pane.getChildren().add(circle); });