Hi,
I am trying to load an image into an applet, however unsuccessfully.
What's wrong here?
package sess31;
// Import the AWT graphics package
import java.awt.*;
import java.applet.*;
public class myownapplet extends Applet
{
Image image;
public void init() {
// Load image
//image = getImage(getDocumentBase(), "show14.gif");
}
public void paint(Graphics g) {
// Draw image
g.drawImage(image, 0, 0, this);
}
}