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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2021-06-04
  • 2021-08-15
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案