Hi, I have a small problem with my rubiks cube.
I want the cube to have all its played moves reversed.
I have a method "undoLastMove()", which graphically undoes a twist applied.
So when I press "Undo" button, this method is called, and everything works fine.
But I also have an "Undo All" button, which basically needs to call that method N times.
But if I do:
It causes a horrible mess, since it doesn't wait for one twist to complete before starting the other, which is what I expected, since they are graphical so they run on AWT
thread, I think its called.
I've tried using SwingUtilities.invokeAndWait(Runnable runnable), but I still doesn't work, is there a good way to solve this?
Thanks
[ April 14, 2007: Message edited by: colin shuker ]