import java.applet.*;
import java.awt.*;
/*<applet code="DrawImage1" width=280 height=280>
<param name="file1" value="Blue hills.jpg">
</applet>
*/
public class DrawImage1 extends Applet {
Image[] image=new Image[1];
public void init(){
image[0]=getImage(getDocumentBase(),getParameter("file1"));
}
public void paint(Graphics g){
g.drawImage(image[0],0,0,this);
}
}
import java.awt.*;
/*<applet code="DrawImage1" width=280 height=280>
<param name="file1" value="Blue hills.jpg">
</applet>
*/
public class DrawImage1 extends Applet {
Image[] image=new Image[1];
public void init(){
image[0]=getImage(getDocumentBase(),getParameter("file1"));
}
public void paint(Graphics g){
g.drawImage(image[0],0,0,this);
}
}
Post a Comment