JavaFx response to SwingUtilities.invokeLater

后端 未结 1 816
你的背包
你的背包 2020-12-06 11:20

So I am aware that JavaFx\'s method of updating the GUI while using a thread is called Task but does the code work in similar way or are there any differences. let me give y

相关标签:
1条回答
  • 2020-12-06 12:09

    Are you looking for SwingUtil.invokeLater counterparts in JavaFX. If yes, it is:

    Platform.runLater(java.lang.Runnable runnable)
    
    0 讨论(0)
提交回复
热议问题