[英]How to use icon in Java applet?
I want to use my icon in a Java applet. 我想在Java小程序中使用我的图标。 How can I do that? 我怎样才能做到这一点?
There are two different Platform Look and Feels there. 那里有两种不同的平台外观。 But what I think you're getting at is that one is a signed application and one isn't. 但是我认为您要了解的是一个是签名应用程序,一个不是。
There is a documented process you need to follow to sign your application so it doesn't have the warning icon and the unchecked box. 您需要遵循一个文档化的过程来对应用程序进行签名,以便该应用程序没有警告图标和未选中的框。
http://docs.oracle.com/javase/tutorial/security/toolsign/index.html http://docs.oracle.com/javase/tutorial/security/toolsign/index.html
http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136112.html http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136112.html
I am not pretty sure things you want to do with the restricted access dialog icon... 我不太确定要使用受限访问对话框图标执行的操作...
But, actually, the uploaded image you showed in your question it is NOT A PART OF " your application " but jre restricted access dialog. 但是,实际上,您在问题中显示的上载图像不是“ 您的应用程序 ”的一部分,而是jre限制访问对话框。
It shows when you are trying to run a signed applet... It allows you : 它显示您何时尝试运行已签名的小程序...它允许您:
It sounds strange but in other words your question is about "changing something on client machine JRE" :S So I guess it is a bad idea trying to change the jre "Warning-Security" dialog icon itself :S 听起来很奇怪,但是换句话说,您的问题是关于“在客户端计算机JRE上进行某些更改”:S,所以我想尝试更改jre“警告-安全”对话框图标本身是一个坏主意:S
Even if you starts a pretty correct signed applet once you still will have the restricted access dialog shown until you makes the cert trusted; 即使您一旦启动了一个非常正确的签名小程序,您仍将显示受限访问对话框,直到您使证书受信任为止。 So anyway the dialog will be shown even once for having cert trusted; 因此,无论如何,即使证书被信任,对话框也会显示一次; It makes me think you anyhow cannot avoid having this dialog showing for your signed applet; 这让我认为您无论如何都无法避免让您的签名小程序显示此对话框。
Still you can make the restricted access dialog NEVER BEEN SHOWN; 您仍然可以使Never BEEN SHOWN受限访问对话框; But the only way to do so is keeping your applet in sandbox frames using "unrestricted - the harmless" libraries in your applet project and your applet should be unsigned; 但是,这样做的唯一方法是使用applet项目中的“无限制-无害”库将applet 保留 在沙箱框架中,并且applet应该未签名; For more detailed information what unsigned applet can do or what they're can't you can read this tutorial; 有关更多详细信息,未签名的applet可以做什么或不可以做什么,您可以阅读本教程。
PS In the case you meant something else in your question please do comment 附言:如果您有其他疑问,请发表评论
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.