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

JAVA学习网 2018-11-08 06:00:04

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
        }
   });

 

阅读(1900) 评论(0)