I am trying to get the lander image to appear on the Animation Panel when i run the program. The code in question is in class DrawPanel. For some reason image is not appearing. What could be wrong.
[ March 06, 2004: Message edited by: Mike Williams ]
Mike Williams
Greenhorn
Joined: Jan 30, 2004
Posts: 7
posted
0
Can someone help me?
Ernest Friedman-Hill
author and iconoclast
Marshal
What is "code to draw animation" short for? If that's where you've placed the actual animation loop, then the problem is that you'lll be blocking the event thread, which is what actually repaints the screen; never do any long-running processing on the event thread! Instead, you have to create a new thread dedicated to running your animation. The JDK demos include a number of animation applets; look there for examples.
Please don't post questions to multiple forums. I just answered this for you over in the Threads forum, so I'm going to close this one; followups there, please.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.