wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Please help!!!!" Watch "Please help!!!!" New topic

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

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.
It is sorta covered in the JavaRanch Style Guide.
subject: Please help!!!!
Similar Threads
Need help with "Square must move at constant speed and bounce of the borders"...
Trying to draw image, but not showing up
Moon Lander
Animating Images using threads??
Please help!!!!