My program has two threads. One calls repaint every 1/2 of a second (using the sleep command), and the other does everything else. The thread that calls repaint is not regular. It’s very sporadic, and there’s no pattern. I get a different timing even when I run the program again. However, when I add System.out.println() right before the sleep command, the problem is fixed. Anybody know of this problem?
Thanks.