import java.awt.*;
import java.applet.Applet;
public class puke0 extends Applet{
static int ii=0,jj=0; //放扑克牌的点;
static Font ff; //字体;
public void init(){
resize(600,400);
}
public void paint(Graphics g){
g.setColor(Color.blue);
ff= new Font("TimesRoman", Font.BOLD,25);g.setFont(ff);
g.drawString("在鼠标点击处出现扑克牌示例:",25,50);
g.drawImage(getImage(getDocumentBase(),"Fk13.GIF"),ii,jj,this);
}
//鼠标事件;
public boolean mouseDown(Event e, int x, int y) {
ii=x;jj=y;
repaint();
return true;
}
}