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 Stack Overflow by BohdanN
, 1 year ago
Not on FX application thread; currentThread = Thread-4
via GitHub by rihlsul
, 2 years ago
Not on FX application thread; currentThread = Thread-25
via javaprogrammingforums.com by Unknown author, 2 years ago
Not on FX application thread; currentThread = Timer-0
via GitHub by orsjb
, 11 months ago
Not on FX application thread; currentThread = Thread-7
via programujte.com by Unknown author, 1 year ago
Not on FX application thread; currentThread = Thread-4
via stackexchange.com by Unknown author, 1 year ago
Not on FX application thread; currentThread = Timer-0
java.lang.IllegalStateException: Not on FX application thread; currentThread = main
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:204)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:364)
at javafx.scene.Scene.addToDirtyList(Scene.java:485)
at javafx.scene.Node.addToSceneDirtyList(Node.java:424)
at javafx.scene.Node.impl_markDirty(Node.java:415)
at javafx.scene.Node.impl_transformsChanged(Node.java:4502)
at javafx.scene.Node$NodeTransformation$3.invalidated(Node.java:5605)
at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:112)
at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:146)
at javafx.css.StyleableDoubleProperty.set(StyleableDoubleProperty.java:82)
at javafx.scene.Node.setTranslateY(Node.java:5050)
at com.sun.javafx.scene.control.skin.ScrollBarSkin.positionThumb(ScrollBarSkin.java:498)
at com.sun.javafx.scene.control.skin.ScrollBarSkin.handleControlPropertyChanged(ScrollBarSkin.java:380)

Users with the same issue

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
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
11 more bugmates

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