File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes Please help!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Please help!!!!" Watch "Please help!!!!" New topic
Author

Please help!!!!

Stephen Norris
Ranch Hand

Joined: Oct 27, 2003
Posts: 44
I am writing a program that is suppose to show a moon lander image going up and down on a JPanel. I don't know what I am doing and have barely got anything down. Below is what I have so far. Can someone please help me at least get started on this. I am a beginning student and I am lost. I am in jeopardy of failing my class if I don't do this. I am not asking anyone to write the program for me, but I don't even know where to start.
Sudhanshu Umalkar
Greenhorn

Joined: Nov 19, 2002
Posts: 12
1. Create a image object in init() method.
2. In run() method, keep changing coordinates of image (moon lander) after specific interval of time. I mean, either increment / decrement Y coordinates by a pixel to give the effect of image moving up or down. Call repaint() thereafter.
3. In paint() method, just draw the image with the changed coordinates.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help!!!!
 
Similar Threads
Need help with "Square must move at constant speed and bounce of the borders"...
Animating Images using threads??
Please help!!!!
Trying to draw image, but not showing up
Moon Lander