Like a lot of others, I am new to java/applets.
I have written a basic applet which rolls through a number of jpg pics at the click of a mouse.
It works fine when on my pc along with calling html code.
The html, class files and jpg files are all in the same directory.
The jpg files are loaded using:
for....
pic[i -1] = getImage(getCodeBase(),"Pic" + i + ".jpg"
;
Then displayed using:
g.drawImage(pic[picNum], 0, 0, this)
But when I upload the html, class files and jpg's to my web area (all in same area) - the images are not displayed.
A test applet which painted some basic text worked ok.
Any ideas ?
I have written a basic applet which rolls through a number of jpg pics at the click of a mouse.
It works fine when on my pc along with calling html code.
The html, class files and jpg files are all in the same directory.
The jpg files are loaded using:
for....
pic[i -1] = getImage(getCodeBase(),"Pic" + i + ".jpg"
Then displayed using:
g.drawImage(pic[picNum], 0, 0, this)
But when I upload the html, class files and jpg's to my web area (all in same area) - the images are not displayed.
A test applet which painted some basic text worked ok.
Any ideas ?