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

Resized frames (with MenuBar) created from Applet not repainted correctly

XMLWordPrintable

    • x86
    • windows_nt



      Name: md23716 Date: 06/22/2000

      1. Known existing SUN Bug ID's (If Any): None

      2. Workarounds:
      Enable "Show window contents while dragging" in the Windows Display
      Properties dialog (on the Plus! tab). It makes MenuBar repainted immediately,
      then the problem will be hidden from customers.

      3. Test Case and Failure Data
      When a Frame with MenuBar created from Applet is resized larger, a part of MenuBar area
      will not be repainted correctly.

      - Environment
      Operating Systems: Windows 95, Windows 98, Windows NT 4.0, Windows 2000
      Hardware: Pentium II 600MHz, 256MB RAM, 17GB harddrive

      - Conditions
      This fails only under the following conditions:
      1) "Show window contents while dragging" is not enabled in the Windows
      Display Properties dialog (on the Plus! tab).
      2) The window is made larger.
      If the window is made smaller, then the menu bar repaints correctly.

      - Steps to reproduce the problem
      1) Create the following Java source as "MenubarTest.java", and compile the source.
      --- start ---
      import java.awt.*;
      import java.applet.*;
      public class MenubarTest extends Applet {
      public void init() {
      Frame frame = new Frame("MenuBar Test");
      Menu menu = new Menu("This is a test menu bar",true);
      MenuBar menubar = new MenuBar();
      menubar.add(menu);
      frame.setMenuBar(menubar);
      frame.setSize(200, 75);
      frame.show();
      }
      }
      --- end ---

      2) Create the following html file as "MenubarTest.html".
      --- start ---
      <html>
      <body>
      <applet code="MenubarTest.class" width=200 height=200>
      </applet>
      </body>
      </html>
      --- end ---

      3) Run appletviewer from the test system as follows.
      >appletviewer MenubarTest.html
      A child Frame will appear on the appletviewer window.

      4) Resize the child Frame.
      When the frame is made larger, the right side of the MenuBar will not be repainted correctly. <=== PROBLEM
      The images under the MenuBar can be seen transparently.


      4. Targeted FCS Release
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)




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

            dav Andrei Dmitriev (Inactive)
            mdevereuorcl Michelle Devereux (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: