For my computer science course we have to incorperate an array into an applet to make five line scroll in a certain order. i have started but have no idea where to go from there. would really appreciate help.
Well, I'd say from here, you need to make the lines scroll in a certain order.
In all seriousness, you'll find you get better help if you ask a more specific question. What EXACTLY are you stuck on?
putting them into an array?
displaying them in a specific order?
getting them to scroll?
compiling your code?
Each of these questions would have to go down a different road, and may lead to more questions. Without knowing where you are really stuck, most people aren't going to bother helping you since they would probably just be wasting their time answering the 'wrong' question.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
The array requirement might be satisfied by having something like this:
The scrolling part could be addresses by having 5 threads that scroll each line independently of all other lines (assuming that you have covered multi-threading; if not, that part could also work sequentially).
Ulf, it sounds like you are thinking that each line should scroll across.
I interpreted the assignment as the 5 lines should scroll like on an ancient terminal - i.e. a new line scrolls up, replacing the previous one.
Which, again, is why we need more specific guidelines from the OP.
Joined: Apr 21, 2010
This is what's required
Use arrays to create an applet that lists five of your favorite songs. The applet should:
• scroll the list of song titles, one at a time
• each song title should start at the top of the applet and scroll to the middle then, scroll off the right hand side
• each new song title should scroll in a different colour
• the applet should loop, that is, when it gets to the end of the list, start over again at the beginning of the list
*The last step is the most difficult one. This step is not a matter of Java "know-how" but, a matter of being able to reason through the problem of "how to get text to change direction when it hits a certain point on the applet?"
and as for where im stuck is every where i dont know where to start as for what i have i dont even know how i got there..
Hey, I think I must be in the same online course as Ben Peer. I am on the same assignment.
Just to let you guys know, what we learn in our Content is always completely different than the assignments they ask us to do, thats why its so hard.
Anyways, I have no idea where I'm even going to start with this assignment, but.. I'm sure I will need help and this seems like the appropriate thread, so when I do guess I'll post here :p
I'm not the brightest light bulb. I'm not the sharpest tool in the drawer. I'm not the smartest student in the classroom. I couldn't cut the pickle. But hey, at least I try, right? Or is that a bad thing..
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Java Scrolling Applet Using Arrays Help please