Microsoft SDK for Java

Q169808 HOWTO: Disable ": Applet Window" Message

The information in this article applies to:

SUMMARY

When you create a frame from within a Java applet and run this applet outside the Microsoft® 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 cabsign your applet's class files.

Steps to Reproduce Problem

  1. Create a default Java applet using the Applet Wizard.

  2. At the beginning of your project class, which extends the applet, include the following:
    Frame window
  3. 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();
       }
  4. Build the project.

  5. Execute the project's HTML file.

  6. 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.

You can disable the warning message by asserting SYSTEM permissions, and cabsigning your applet.

REFERENCES

For additional information about cabsigning and asserting permissions, please refer to the following Knowledge Base article:

Q193877 HOWTO: Making your Java Code Trusted in Internet Explorer

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, please see the following pages on the Microsoft Technical Support site:

http://support.microsoft.com/support/visualj/ This link takes you to a site on microsoft.com

http://support.microsoft.com/support/java/ This link takes you to a site on microsoft.com

© 1999 Microsoft Corporation. All rights reserved. Terms of use.