代码:Exception in thread "Thread-6" java.lang.IllegalStateException: Not on FX application thread; currentThread= Thread-6 at com.sun.javafx.tk.quantum.QuantumToolkit
document with JavaFX API of version 8.0.40 by JavaFX runtime of version 8.0.0 at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
at com.sun.javafx.application.PlatformImpl$6$1.