I\'m trying to simulate a basic thermostat in an application GUI.
I want to update a label box value every 2 secs with the new temperature value.
For example
Calling Platform.runLater worked for me:
Platform.runLater
Platform.runLater(new Runnable() { @Override public void run() { } });