ΪʲôͼƬ²»ÄÜÏÔʾÄØ
/*<applet code="Image001.class"width=200 height=200></applet>
*/
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Image001 extends JApplet implements Runnable{
ImageIcon pic1;
double j=1;
int i=10;
public void init(){
pic1=new ImageIcon("D:/myjava/tupian/avril.gif");
resize(400,400);
}
public void run(){
System.out.println("ceshiceshi");
}
public void paint (Graphics g){
while(j>1) {
i++;
pic1.paintIcon(this,g,i,50);
if(j%5==0)
{try
{Thread.sleep(1000);}
catch(Exception e) {}}
}
if(j>10000) j=1;
}
}
ΪʲôͼƬ²»ÄܳöÀ´ÄØ