Bookmark Topic Watch Topic
  • New Topic

Trying to draw image, but not showing up

 
Mike Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Can someone help me?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Mike Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
I dont understand what your talkin about with the "code to draw animation" part, i dont see that, i just need that image to show up right now.
 
Mike Williams
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ok I have went back and created 2 seperate classes, but it still does not show my image, can anyone help me?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic