This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes animation not animating... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "animation not animating..." Watch "animation not animating..." New topic

animation not animating...

Karen Nelson
Ranch Hand

Joined: Aug 19, 2005
Posts: 57
I am trying to do a simple animation (like in HeadStart java p 384) but the panel is not redrawing. Here is the code bit:

This code is attached to a button listener, and if I change the limit of hte loop to 1 and click the button repeatedly, everything looks fine (animated, that is). But when I do 160 steps, only the last step gets drawn (after a long pause for all the sleeps).

Any help would be greatly appreciated!
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
I agree. Here's the link:
subject: animation not animating...
Similar Threads
web based gaming code
Applet problem... need help!
retrieve a int from backbean and dinamically work with it in the .xhtml in very bizarre way
Objects in a Game
Animation pause button