Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4032244

win32:Yellow "Warning:Applet Window" not displayed when it should be

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1.1
    • client-libs
    • x86
    • windows_95

      1. Load file:/<drive mapped to /usr/sqe/>:/workspaces/hotjava/test/master/manual/security/SignedAppletTest.html
      2. Follow instructions for "High", "Open a Window" test on that page. Note if a link does not load change cafedead to parched so you get this page: http://parched.eng/~pkelley/master/manual/security/SignedAppletTest.html.

      Result: On Solaris a yellow "Warning:Applet Window" is displayed, on win32 it isn't, but should be.

      ==========================================================
      [sheri.good@Eng 1997-03-20]
      This looks like the same bug under different circumstances.

      Category: java
      Subcategory: classes_awt
      Bug/rfe/eou: bug
      Synopsis: AppletViewer warning message size not included in frame's insets()
      Severity Impact: (internal)
      Severity Functionality: (internal)
      Priority: (internal)
      Description: The AppletViewer adds a "Warning: Applet Window" message at
      the bottom of frames created by applets, but only after those
      frames are resized. (Perhaps this is a bug in itself?) But,
      the insets() method does not return the size of this warning
      until after addNotify() is called a second time.

      Thus, this code doesn't work in a applet:

      // should produce a 100x100 usable area
      class MyFrame extends Frame {
        MyFrame() {
          addNotify();
          Insets insets = insets();
          setSize(100+insets.left+insets+right, 100+insets.top+insets.bottom);
          show();
        }
      }

      The usable area of the frame is 26 pixels shorter than requested.
      company - The Computer Classroom , email - ###@###.###
      Work around: Calling addNotify(), then insets(), then setSize() a second time
      seems to solve the problem.

      // should produce a 100x100 usable area
      class MyFrame extends Frame {
        MyFrame() {
          addNotify();
          Insets insets = insets();
          setSize(100+insets.left+insets+right, 100+insets.top+insets.bottom);
          addNotify();
          Insets insets = insets();
          setSize(100+insets.left+insets+right, 100+insets.top+insets.bottom);
          show();
        }
      }


      Comments:
      customer_rec: new
      Company: other
      Employee:Andrew Merrill
      Release: jdk11
      Hardware Version: i586
      O/S version: win_95
      User Role: D
      User Type: E
      Sun Contact: (internal)
      end_customer_rec:
      BUG_END

            rraysunw Richard Ray (Inactive)
            rbreedinsunw Ronald Breeding (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: