GeeCON Prague 2014*
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


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.
 
GeeCON Prague 2014
 
subject: Please help!!!!