• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a java applet repeat infinitently?

 
Ben Peer
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49793
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic