JavaFX code allows updating the UI from an JavaFX application thread. But from the above exception message it says that it is not using FX Application thread . One way you can fix is to launch an FX Application thread from the resetPage method.
Outside it, inside the while loop, add Thread .sleep(1000) The reason behind Illegal State Exception is you are trying to update UI on some thread other than JavaFX Application thread . The reason why your app was crashing when you added it was you were overloading the UI thread by adding a process to be executed on the UI thread infinitely.
java.lang. IllegalStateException: Not on FX application thread currentThread = Thread -4 I’m trying to set the string of a Text object from a Thread but it’s giving me this error: Exception in thread Thread -4 java.lang. IllegalStateException: Not on FX application thread currentThread = Thread -4, 3/14/2017 · IllegalStateException: Not on FX application thread #2. cbartzis opened this issue Mar 14, 2017 · 5 comments Comments. Copy link cbartzis commented Mar 14, 2017. … Not on FX application thread currentThread = main at com.sun.javafx.tk.Toolkit.checkFxUserThread(Unknown Source) …
Exception in thread Thread -3 java.lang. IllegalStateException: Not on FX application thread currentThread = Thread -3. I am currently trying to make a.
1/13/2014 · Ran all tests from IntelliJ IDEA 13 on Windows 7 (x64). Throws this exception with Java build 1.8.0-ea-b120 (x64), but runs without exception with Java build 1.7.0_45-b18 (x64). java.lang. IllegalStateException : Not on FX application thre…
5/29/2016 · Hi @sarxos , I have an issue when I try to test the WebCam AppLauncher. The full stack trace provided is following : Exception in thread Thread -8 java.lang. IllegalStateException: Not on FX application thread currentThread = Thread -8 a…