wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How to make a java applet repeat infinitently? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make a java applet repeat infinitently?" Watch "How to make a java applet repeat infinitently?" New topic
Author

How to make a java applet repeat infinitently?

Ben Peer
Greenhorn

Joined: Apr 21, 2010
Posts: 15
I Have A Progarm

what i need it to do is display all of the saong names along the path (down and to the right) then repeat after the last song has gone by. problem is i don't know how to make it repeat without it blurring all the song names together. my teacher suggested i reset my xPos and/or yPos however he has proven to be a little less than helpfull. any help would be appreitated all i need is how to make it repeat and after that ill be golden. thanks if you can help



also i would like to apologize for my eariler posts as they are difficult to understand and rather ignorant but by the time i post them i figure out the problem minutes later and cannot delete the post or atleast i haven't found out how yet...

again thanks for anyone who can help
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38509
    
  23
We don't want you to delete posts. If you have found the answer, you should post that, and we'll see whether we could find anything better

All these things about if (xPos > 250) look suspect to me. You appear to be tying yourself to a certain number of bits of text and a certain size of display. What will happen if you have 6 songs to display, or change to a mobile screen which is 250 × 250 pixels?

Write down in small words what you want to do. When you have got the whole thing in such small words that a child can read it, the you can soon change the whole thing to code which will work for you.

To get things into monosyllables like that last paragraph, you will have to resort to some very high-tech equipment which I am forever telling our undergraduates to obtain: pencil paper and rubberaser
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to make a java applet repeat infinitently?