Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    1,589

    Re: Problem with thread.sleep()

    Creating the same timer 3 times through the loop (an infinite number of times overall). That's not exactly an ideal situation. Create it once (outside of the ActionPerformed method), and set it to...
  2. Replies
    3
    Views
    1,589

    Re: Problem with thread.sleep()

    In swing all painting takes place on the same thread. So when you sleep that thread, none of the other frames are able to re-paint themselves.

    What I would recommend doing is to remove the...
Results 1 to 2 of 2