JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

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

发布时间 2023-05-29 15:44:01作者: xiaoYu&

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

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

 

    本栏目推荐文章
  • 多路io复用pool [补档-2023-07-19]
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • 题解 ARC140E【Not Equal Rectangle】
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • 多线程(Java.Thread)学习
  • threading库设置最大线程
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • application.yml
  • org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
  • Oracle 19c 升级错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table】
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们