HOWTO: Disabling "Warning: Applet Window" Message

Last reviewed: January 29, 1998
Article ID: Q169808
The information in this article applies to:
  • Microsoft Visual J++, versions 1.0, 1.1

SUMMARY

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

   Warning: Applet window

MORE INFORMATION

The above Warning message doesn't appear when you run the applet from within DevStudio. To disable this message from appearing when you run the applet from outside DevStudio, you need to Cab&Sign your applet's class files.

The following steps show you how to reproduce this 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 from outside DevStudio.

  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.

The warning message can be disabled by Cab&Signing your applet, which will also allow your browser file to be executed outside DevStudio.

REFERENCES

For more information on how to Cab&Sign your Java applets, please refer to the Cab&Sign sample that comes with the Visual J++ CD. This contains step-by-step instructions on how to create a CAB file with the Java Class files and how to create a Test Certificate and Sign the CAB file with your certificate. The Visual J++ CD also includes the CabDevKit and the Code Signing Kit that provides the necessary tools to CAB&Sign. These utilities can be found under Cab&Sign folder.

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

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

Keywords          : kberrmsg kbtool VJGenIss WizardIss
Technology        : kbInetDev
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbhowto


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.