Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.08 seconds.

  1. Replies
    19
    Views
    5,114

    Re: How to animate a circle changing color

    Stop putting ActionListeners inside your paintComponent() method.

    Setting the updateTask to a new ActionListener does not set the ActionListener that you passed into the Timer.

    All you need to...
  2. Replies
    19
    Views
    5,114

    Re: How to animate a circle changing color

    What are you doing in your dummy methods? Specifically, what are you actually setting the color of? Does this even compile?

    Recommended reading: Lesson: Performing Custom Painting (The Java™...
Results 1 to 2 of 2