更新时间:2023-01-26 10:53:42
这也发生在我身上,我只想写下我是如何解决它的。答案是:我正在从非JavaFX线程编辑GUI 。我绝对相信我不是,但我是。如果遇到此问题,请检查您的代码,并使用 Platform.runLater()
在正确的JavaFX线程中运行GUI更改。
This happened to me too, and I just wanted to write how I solved it. The answer is: I was editing the GUI from a non-JavaFX thread. I was absolutely convinced I wasn't but I was. Check your code if you have this issue, and use Platform.runLater()
to run GUI changes in the correct JavaFX thread.