import java.awt.*;
import java.applet.*;
import java.net.*;
import java.lang.*;

public class cherry03 extends Applet implements Runnable {

int j = 0;
Image imgc = null;
Thread clockThread = null;
String mesd = "";

public void init() {
if( clockThread == null ) {
clockThread = new Thread(this);
clockThread.start();
}
}

public void paint(java.awt.Graphics g){
if (imgc == null){
mesd = "Now loading...";
g.setColor(Color.white);
g.fillRect(0,0,256,384);
g.setColor(Color.black);
g.drawString( mesd, 64, 192);
}
}

public void update( java.awt.Graphics g ) {
if (j == 0){
for (int x=256; x>=0; x--){
g.drawImage(imgc,x,0,256,384,this);
}
}else{
g.drawImage(imgc,0,0,256,384,this);
}
}

public void run() {
jikanmachi("CHERRY3A.JPG");
jikanmachi("CHERRY3B.JPG");
jikanmachi("CHERRY3D.JPG");
j = 1;
jikanmachi("CHERRY9C.JPG");
}

public void jikanmachi(String fname){
try{
imgc = getImage(new URL("http://www.idol.org/club/" + fname));
}catch(Exception e){
e.printStackTrace();
}
repaint();

try{
clockThread.sleep(3072);
}catch(InterruptedException e){
System.out.println("Interrupt Exception");
}
}
}

September 14, 2003
The following clause.
ソフトウェア