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