Ok so I've been attempting to do this for like a whole week and have not even gotten close so im here to take a crack at asking around. I'm pretty new to java too so I appreciate if anyone can help me on this.
I'm building a "falling sand" project where I can make sand fall as well as water and add other elements. I want to make a clear screen button where some lasers go through each row and clears the screen. I want to add a delay between each laser by like 1/5 of a second maybe. Problem is I have no clue how to do this. I tried using Thread.sleep() but it froze the whole graph and didn't do anything. I just found the SwingTimer and the Timer class and I'll look into it but for now I'm lost and need some guidance.