import java.awt.*;
import java.applet.*;
import javax.swing.*;
public class JavaExampleEventImage extends JApplet
{
Image Img;
final int WIDTH = 318;
final int HEIGHT = 100;
public void init()
{
Img =getImage(getCodeBase(),"java.jpg");
}
public void paint(Graphics gr)
{
super.paint(gr);
// Draw image at Natural size 318 X 100
gr.drawImage(Img, 0, 0, this);
gr.drawImage(Img, 0, HEIGHT, WIDTH * 2, HEIGHT * 2, this);
}
}
/*<applet code= JavaExampleEventImage.class Height=300 width=240></applet>*/