I am trying to get my
applet to have the same background as my web page. My web page's background is stars.jpg. Can someone tell what is the best way to get this to work? This is a small code snippet that won't compile:
public void init() {
stars=getImage(getCodeBase(), "stars.jpg");
setBackground(stars);
long lasttime;
p1 = new point(MAX, MAXV);
p2 = new point(MAX, MAXV);
p1.rand(); p2.ran(); //Randomize points
resize(MAX,MAX+20); //Set window size
}