Updating UI from different threads in JavaFX
Not sure if I completely understand, but I think this may help. Using Platform.runLater(…) is an appropriate approach for this. The trick to avoiding flooding the FX Application Thread is to use an Atomic variable to store the value you’re interested in. In the Platform.runLater method, retrieve it and set it to a sentinel value. … Read more