import java.awt.*;
import java.applet.*;
public class Images extends Applet
{
                Image image;
                public void init()
                {
                                image=getImage(getDocumentBase(),"Image.png");
                }
                public void paint(Graphics g)
                {
                                g.drawImage(image,10,10,this);
                }
}

 

<HTML>
                <APPLET
                                CODE=Images.class
                                width=320
                                height=320>
                </APPLET>
</HTML>

JAVA 44.PNG

Advertisements