문제

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