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

猜你喜欢

转载自www.cnblogs.com/tk55/p/9923797.html