File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes How to remove the message Java Applet Window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to remove the message Java Applet Window" Watch "How to remove the message Java Applet Window" New topic
Author

How to remove the message Java Applet Window

Suresh Chilakam
Greenhorn

Joined: Mar 08, 2007
Posts: 10
Hi,

How to remove the message "Java Applet Window" displaying at the bottom of the applet window.

I tried the below permission settings in .java.policy file. But no luck.

grant {
permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
};

Could you please let me know if anyone know how to remove the message.

Thanks,
Suresh Chilakam
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
Can you ascertain by other tests that that file is actually being used?
Suresh Chilakam
Greenhorn

Joined: Mar 08, 2007
Posts: 10
I tried by signing the jar file. I am able to remove the message now.

How to determine java.policy is being used by our application?

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
By putting in other permissions and making sure that those are being used (meaning that the applet actually has those permissions), maybe for file I/O.
Suresh Chilakam
Greenhorn

Joined: Mar 08, 2007
Posts: 10
Hi,

My prob is solved with signing the jar files. But I am trying to do with policy file.

I have two versions of java on my machine. One is j2sdk1.4.2_17 and the other one is from BEA Weblogic Platform.

Java installed under c:\j2sdk1.4.2_17 and
BEA's jdk installed under C:\bea\jdk142_11

I have added permission
java.awt.AWTPermission "showWindowWithoutWarningBanner";
in both the JRE's java.policy file but couldn't hide the warning message.

I found one more java.policy file as public JRE under
C:\Program Files\Java\j2re1.4.2_17\lib\security. If I add the awt permission here, I am able to hide the applet warning message when I accessed my web application from my machine. But not able to hide the warning message when accessed from other machines.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
Changes to the security policy only work on the machine where you apply them. Each client machine will need to have those changes, or they will see that message.
Suresh Chilakam
Greenhorn

Joined: Mar 08, 2007
Posts: 10
To work on all the client machines, where exactly the changes needs to be done?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
As I said, each client machine will need to have those changes applied. Since that's beyond what the average (non-technical) user will be able/comfortable to do, signing the applet is the better option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to remove the message Java Applet Window