Suppress: JFrame security warning?


I want to get rid off the yellow warning line at the buttom of the applet spawned JFrame.  I use JDK 1.2.2 with Java plug-in.  
Scenario.  A user loads a JDK 1.2.2 Swing applet in a browser.  This applet creates a separate Swing JFrame window (javax.swing.JFrame).  The JFrame window has a yellow line "Warning: Applet Window".  I want to be able to remove this line.  
The solution should work in MS IE and Netscape.

How do suppress the yellow warning line?


Alex Koifman
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You must sign applet

Code signing resources:

Frequently Asked Questions - Java Security
What Applets Can and Can't Do
Security Restrictions

Creating Signed, Persistent Java Applets
java how-to
Java Signing FAQ 



NN: Bypass the need for a certificate
Netscape provides a way to accept a codebase as trusted (then a certificate is not needed). This can be useful during development or in a private Intranet. In the Netscape Users directory, there is a file called prefs.js. Adding the line user_pref("signed.applets.codebase_principal_support", true);

will enable JAR file without a certificate to request privileges on your machine. If you agree, it will be possible for an Applet to lauch a program, write a file on your hard disk or print on the printer. You will still have to ask for privileges in your program using the Netscape capabilites classes.
Another way is to lower general security setting to more allow more freedom when running applets locally. Add or modify the following entries in the prefs.js: user_pref("unsigned.applets.low_security_for_local_classes", true);
user_pref("signed.applets.local_classes_have_30_powers", true);
user_pref("signed.applets.low_security_for_local_classes", true);
user_pref("signed.applets.verbose_security_exception", true);

Then you don't need to asked for privileges for local classes.
When adding or modifying the file prefs.js, Netscape must not be running because your modification will be overwritten. So shut down Netscape, edit the prefs.js and then restart Netscape.
akoifmanAuthor Commented:
If I have my applet signed, will a user be prompted with a dialog about applet security (trusted applet) every time it runs the applet?  If yes, then it is very annoying.  Can I bypass that?

Thanks again,

in ideal case - it will be at first time only
also user can check checkbox("Always trust YourCompany")
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

akoifmanAuthor Commented:
You mean only the first time user runs the applet, or first time the applet appears in the browser window (but with each browser invocation)?

I am using Java plug-in.  DOes it make it easier to get rid of the warning?  Possibly programatically?

Thanks again,

if u use plugin look

but i never try it :)

but I  have made it for IE and NN without plugin
Unfortunately the Java Development Kit (JDK TM) 1.1 signing and verification is not supported by the web browsers (NetscapeTM's and Microsoft's.) It is supported in HotJavaTM, and appletviewer.

You can use the JavaTM Plug-in in the browsers to get access to more recent JDK technology, You can run 1.1.x signed applets with the Plug-in plugged into the browsers.
do u still have problems?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.