AndyKnappJava
Programmer
Hi,
I'm trying to read in an icon for a button using the ImageIcon constructor:
ImageIcon icon = new ImageIcon( <file name> );
This is fine when the code is on my local machine or being run under AppletViewer, however when I try to run the applet through a web browser I get a:
java.security.AccessControlException: access denied(java.io.FilePermission not.gif read)
I've made sure the not.gif file has read access on my web server and that the file is in the same location as the .class file - what more do I need to do?!!
Thanks Andy
I'm trying to read in an icon for a button using the ImageIcon constructor:
ImageIcon icon = new ImageIcon( <file name> );
This is fine when the code is on my local machine or being run under AppletViewer, however when I try to run the applet through a web browser I get a:
java.security.AccessControlException: access denied(java.io.FilePermission not.gif read)
I've made sure the not.gif file has read access on my web server and that the file is in the same location as the .class file - what more do I need to do?!!
Thanks Andy