質問

I have a simple Applet application and my code creates ImageIcon objects from the same url from the Applet. When I run the application, I get a message about unrestricted access, it scares the user.

How I configure my Applet or my JNLP to only show specific restriction messages?

Edited After all, I refactor my code and find ways to load image correctly. To load image from JAR: http://docs.oracle.com/javase/tutorial/uiswing/components/applet.html#images. To load image from Applet: imageIcon = new ImageIcon(getImage(getCodeBase(), "image/image_name.png"));

役に立ちましたか?

解決

How I configure my Applet or my JNLP to only show specific restriction messages?

Beyond the more specific permissions shown for the JNLP API services, Java does not offer any finer permission gradations than all-permissions, j2ee-application-client-permissions or sand-boxed (no security element).


However it seems this warning is seen due to a bug linked by the OP.

Netbeans Bug 227169 - java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top