Not on FX application thread; currentThread = AWT-EventQueue-0的解决方法

swing awt跑javafx报了这问题

Not on FX application thread; currentThread = AWT-EventQueue-0

 

解决方法

Platform.runLater(new Runnable() {
        @Override
        public void run() {
          //javaFX operations should go here
        }
   });

 

posted on 2018-11-07 17:18  Honey_Badger  阅读(981)  评论(0编辑  收藏  举报

导航

github