Javafx Updating UI from a Thread without direct calling Platform.runLater
问题 Nowadays some says it is not suitable to use Platform.runLater() for updating the UI from a non-JavaFX Thread and Oracle site introduce a way with bindings for progress bar updating. Here I want to update a Label, so coded it like this: Task task = new Task() { @Override protected Object call() throws Exception { int i = 0; while (true) { this.updateMessage("Count " + i); System.out.println(i); // Thread.sleep(10); i++; } } }; Thread t = new Thread(task); lbStatus.textProperty().bind(task