// JavaScript Document
import java.awt.*;
import java.applet.*;
import java.awt.Graphics;
import java.awt.Image;
/* <applet code="lady" width=300 height=400 > </applet> */
public class lady extends Applet {
Image bugImg;
public void init(){
bugImg=getImage(getCodeBase(),"myimages/lady.jpg");
}
public void paint(Graphics g) {
g.drawImage(bugImg,10,10,this);
}
}
No comments:
Post a Comment