java.lang.IllegalStateException

Not on FX application thread; currentThread = main

Solutions on the web18241

  • Not on FX application thread; currentThread = main
  • via Stack Overflow by Supuhstar
    , 1 year ago
    Not on FX application thread; currentThread = main
  • Not on FX application thread; currentThread = main
  • Stack trace

    • 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) at com.sun.javafx.scene.control.skin.BehaviorSkinBase.lambda$registerChangeListener$60(BehaviorSkinBase.java:197)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 3 months ago
    Unknown user
    3 times, 8 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    11 more bugmates