JavaFx response to SwingUtilities.invokeLater

后端 未结 1 821
你的背包
你的背包 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)
提交回复
热议问题