swing awt跑javafx報了這問題java
Not on FX application thread; currentThread = AWT-EventQueue-0app
解決方法ide
Platform.runLater(new Runnable() { @Override public void run() { //javaFX operations should go here } });