Not on FX application thread; currentThread = pool-3-thread-1

业务线程更新JavaFx的ui界面报错 Not on FX application thread; currentThread = pool-3-thread-1,解决方法很简单,在业务线程里使用Platform.runLater

Platform.runLater(()->{
//执行UI更新的代码
});

 

posted @ 2023-05-29 15:38  xiaoYu&  阅读(45)  评论(0编辑  收藏  举报