Make a JavaFX application wait between an animation
问题 I am working on a simple game using JavaFX. What I want here is that at the end of the loop, the application waits for a specified period of time, and then runs again. When I run this code on the application thread, the view doesn't get updated and the Nodes disappear without me seeing the animation. If I create a new thread, then nothing happens at all. Since this animation isn't run until the game has been completed, it doesn't matter if nothing else works until the animation is completed.