I’m trying to simulate waiting in a java swing application, so it’s basically like this: the user presses a button (Already added an actionlistener) then the program basically makes a 5 seconds pause while working in the background, then when the 5 seconds have elapsed a window shows up. ( I know how to make the window). Basically I’m asking how do you work with swing timers? Is there a command like pause() that can be invoked?
I’m trying to simulate waiting in a java swing application, so it’s basically like
Share
You might get some ideas from
TimerFrame. See also Using Timers in Swing Applications.