Search:

Type: Posts; User: copeg

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    5,301

    Re: Repaint doesn't repaint?

    I'm not fully sure I understand what you're needs are, but assuming I do there are probably dozens of ways to accomplish it...its just how messy/clean/re-useable you want the code. One suggestion...
  2. Replies
    6
    Views
    5,301

    Re: Repaint doesn't repaint?

    Just call it when you stop your timer:



    count++;
    if(count > 50)
    {
    t.stop();
    reset();
    }
  3. Replies
    6
    Views
    5,301

    Re: Repaint doesn't repaint?

    Your animate function is being performed on the event dispatch thread (EDT), and since all drawing/events/etc... is queued onto this thread, no calls will be performed until your function exits...
Results 1 to 3 of 3