P
Piet den Dulk
Dear Java Masters,
I have a backtracking method which calculates all the posibillities. but
when one solution I call the repaint method. Then the gui must be repainted
and there must be some delay so that the user should be able to see what the
solution is. So I've put a Thread.sleep(2000) in the paint method. But my
problem is that the backtracking method calculates the next solutions at the
moment when I call the sleep. This is nog what I want.
Is there a simple tric so I could let sleep the system 2000 instead of only
a thread so that the backtracking also sleeps.
Best regards,
Piet den Dulk
I have a backtracking method which calculates all the posibillities. but
when one solution I call the repaint method. Then the gui must be repainted
and there must be some delay so that the user should be able to see what the
solution is. So I've put a Thread.sleep(2000) in the paint method. But my
problem is that the backtracking method calculates the next solutions at the
moment when I call the sleep. This is nog what I want.
Is there a simple tric so I could let sleep the system 2000 instead of only
a thread so that the backtracking also sleeps.
Best regards,
Piet den Dulk