Back to course

Platform.runLater()

JavaFX 0 to Hero

Platform.runLater()

When a background thread needs to update the UI, you must wrap the UI code inside Platform.runLater() to avoid errors.