java.lang.IllegalStateException: Not on FX application thread; currentThread = main

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via fxexperience.com by Unknown author, 1 year ago
Not on FX application thread; currentThread = main
via eclipse.org by Unknown author, 1 year ago
Not on FX application thread; currentThread = JavaFX Application Thread
via eclipse.org by Unknown author, 1 year ago
Not on FX application thread; currentThread = JavaFX Application Thread
via Oracle Community by restenbro, 1 year ago
Not on FX application thread; currentThread = AWT-EventQueue-0
via GitHub by cbartzis
, 7 months ago
Not on FX application thread; currentThread = main
via Stack Overflow by BohdanN
, 1 year ago
Not on FX application thread; currentThread = Thread-4
java.lang.IllegalStateException: Not on FX application thread; currentThread = main
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:216)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:394)
at javafx.scene.Scene.(Scene.java:247)
at javafx.scene.Scene.(Scene.java:158)
at swt.demo.SWTDemo.createChart(SWTDemo.java:106)
at swt.demo.SWTDemo.main(SWTDemo.java:73)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
3 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
11 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.