One question about Java Programming# Java - 爪哇娇娃
x*y
1 楼
hi,
I am writing an Applet file A.java using Java. I put A.java in the linux
operating system and use IE to run the applet.
My question is:
in A.java, there is one line:
JButton increase = new JButton (new ImageIcon ("increase.gif"));
I do have increase.gif at the same directory of A.java. However, when I run
this applet, I got :
java.security.AccessControlException: access denied (java.io.FilePermission
increase.gif read)
What is wrong?
Thanks for the information
I am writing an Applet file A.java using Java. I put A.java in the linux
operating system and use IE to run the applet.
My question is:
in A.java, there is one line:
JButton increase = new JButton (new ImageIcon ("increase.gif"));
I do have increase.gif at the same directory of A.java. However, when I run
this applet, I got :
java.security.AccessControlException: access denied (java.io.FilePermission
increase.gif read)
What is wrong?
Thanks for the information