AgentPaper
From the depths, I come.
- Reaction score
- 107
I'm having some trouble making my program wait. Basically, at some point I want the program to display an image, an animated .gif file, and then I want it to replace that .gif with another image after the .gif has finished playing after 2 seconds. However, wait(2000) and Thread.sleep(2000) just freeze up the program for 2 seconds, other code doesn't run and the animation doesn't play. So, how can I make my program do something after X seconds, without stopping the rest of the program from running?