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

Google Groups | Ryan Gilera | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How do you test dialogs, file save and open on TestFX?

    Google Groups | 2 years ago | Ryan Gilera
    java.lang.IllegalStateException: Not on FX application thread; currentThread = main
  2. 0

    How can I use concurrency (threads) in JavaFX (with FXML!!! (JavaFX Scene Builder) )?

    Stack Overflow | 2 years ago | user3487276
    java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-4
  3. 0

    How can I use concurrency (threads) in JavaFX (with FXML!!! (JavaFX Scene Builder) )? - scriptscoop.com

    scriptscoop.com | 1 year ago
    java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-4
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    14 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not on FX application thread; currentThread = main

      at com.sun.javafx.tk.Toolkit.checkFxUserThread()
    2. com.sun.javafx
      QuantumToolkit.checkFxUserThread
      1. com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:204)
      2. com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:364)
      2 frames
    3. javafx.scene
      Node.impl_markDirty
      1. javafx.scene.Scene.addToDirtyList(Scene.java:485)
      2. javafx.scene.Node.addToSceneDirtyList(Node.java:424)
      3. javafx.scene.Node.impl_markDirty(Node.java:415)
      3 frames
    4. javafx.scene.shape
      Shape.impl_markDirty
      1. javafx.scene.shape.Shape.impl_markDirty(Shape.java:942)
      1 frame
    5. javafx.scene
      Node.impl_geomChanged
      1. javafx.scene.Node.impl_geomChanged(Node.java:3784)
      1 frame
    6. javafx.scene.text
      Text$2.invalidated
      1. javafx.scene.text.Text.impl_geomChanged(Text.java:763)
      2. javafx.scene.text.Text.needsTextLayout(Text.java:194)
      3. javafx.scene.text.Text.needsFullTextLayout(Text.java:189)
      4. javafx.scene.text.Text.access$200(Text.java:96)
      5. javafx.scene.text.Text$2.invalidated(Text.java:386)
      5 frames
    7. javafx.beans.property
      StringPropertyBase.set
      1. javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:109)
      2. javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:143)
      3. javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:49)
      3 frames
    8. javafx.scene.text
      Text.setText
      1. javafx.scene.text.Text.setText(Text.java:367)
      1 frame
    9. FXSampler
      TextAreaSkin.lambda$new$231
      1. com.sun.javafx.scene.control.skin.TextAreaSkin.lambda$new$231(TextAreaSkin.java:571)
      1 frame