I have an application in which I would like to pause a little. It would be important that graphic elements / changes are better visible between two automatic interactions.
I tried to use the above code for 2 minutes pause, but it causes a pause at the beginning of the method, and not between two exact lines of code inside the method.
try {
Thread.sleep(2000);
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
user4725754
source
share