HOWTO: Disable "Warning: Applet Window" Message

ID: Q169808


The information in this article applies to:


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

  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 Cab&Signing your applet.


REFERENCES

For additional information about Cab&Signing 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/

http://support.microsoft.com/support/java/

Additional query words:


Keywords          : kberrmsg kbSDKJava300 kbGrpJava kbSDKJava310 kbSDKJava320 
Version           : WINDOWS:1.0,1.1,1.5,1.51,2.0,2.01,2.02,3.0,3.1,3.2
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: July 13, 1999