import java.applet.Applet;import java.awt.Graphics;import java.awt.Image;public class ImageDemo extends Applet{ Image img; public void init(){ img = getImage(getCodeBase(),"发芽了.jpg"); } public void paint(Graphics g){ g.drawImage(img,30,10,this); }}
添加回答
举报
0/150
提交
取消