-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
my issue i am having is finding away to put the array into an applet. any help is appreciated!
import java.applet.Applet;
import java.awt.*;
public class Songs extends Applet
{
private String[] s1 = {"Break - Childish Gambino","Make it Nasty -
Tyga","Drank in My Cup - Kirko Bangz","Spacejam - Timeflies","When
the Lights Go Out - Bombs and Bottles"};
public Songs()
{
int size = s1.length;
for (int i=0; i<size; i++)
{
System.out.println(s1[i]);
}
}
public static void main(String[] s1)
{
new Songs();
}
}

New Topic/Question
Reply



MultiQuote






|