Error: cannot load image .
Hai , i have a probleam to load image . I am doing my homework using java applet. After i double the ImageLoad.html it still dont appear anything .Here is my code and please correct my code if it not suitable
/*a.ImageLoad.java*/
import java.applet.*;
import java.awt.*;
public class ImageLoad extends java.applet.Applet {
Image img;
public void init()
{
img = getImage(getDocumentBase(), getParameter("image"));
}
public void paint(Graphics g)
{
g.drawImage(img,0,0,this);
}
}
/* ImageLoad.html*/
<html>
<body>
<applet code = ImageLoad.class width =248 height= 146>
<param name ="img" value =" 380025BungaRaya.gif">
</applet>
</body>
</html>
Re: Error: cannot load image .
Are there any error messages in the browser's java console?
Split your compound statements into single statements and print out the values returned by each individual statement to see if they are all working as you expect.