I\'m trying to run a method within a thread and update the GUI periodically while this thread is running. My JavaFX code consists out of two scenes, on the first a user inputs s