Microsoft KB Archive/169808

= How to disable "Warning: Applet Window" message =

Article ID: 169808

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 1.0 Standard Edition
 * Microsoft Visual J++ 1.1 Standard Edition
 * Microsoft Software Development Kit for Java 1.0
 * Microsoft Software Development Kit for Java 1.5
 * Microsoft Software Development Kit for Java 1.51
 * Microsoft Software Development Kit for Java 2.02
 * Microsoft Software Development Kit for Java 2.01
 * Microsoft Software Development Kit for Java 2.02
 * Microsoft Software Development Kit for Java 3.0
 * Microsoft Software Development Kit for Java 3.1
 * Microsoft Software Development Kit for Java 3.2

-



This article was previously published under Q169808



SUMMARY
When you create a frame from within a Java applet and run this applet outside the Developer Studio environment, the frame sizing is inconsistent and the following Warning message also appears in the frame's Status Bar:

Warning: Applet window



MORE INFORMATION
To disable this message so that this warning does not appear when you run the applet, you need to assert SYSTEM permissions and Cab&Sign your applet's class files.

Steps to Reproduce Problem
 Create a default Java Applet using the Applet Wizard.  At the beginning of your project class, which extends the applet, include the following: Frame window;   In the init function include the following code, which creates and shows the frame: public void init { window = new Frame("A popup window"); window.resize(150,150); window.show; }                        Build the project. Execute the project's HTML file. This invokes the Browser and a Frame window with the title "A popup window" appears. The window, which is resized inconsistently, has the Warning message in its status bar.</ol>

You can disable the warning message by asserting SYSTEM permissions, and Cab&Signing your applet.

<div class="references_section">