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

REGRESSION: Custom AWT Panel doesn't repaint properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • deploy
    • x86
    • windows_2000



      Name: gm110360 Date: 04/05/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      ADDITIONAL OPERATING SYSTEMS :
      Microsoft Windows XP [Version 5.1.2600]


      A DESCRIPTION OF THE PROBLEM :
      A Custom Panel is not repainted properly in Internet
      Explorer/Netscape if the mouse is not in the applet space.

      This bug seems to be a duplicate of 4512592, but it is
      still not fixed.

      REGRESSION. Last worked in version 1.3

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Open the applet with Explorer / Navigator. Leave the
      mouse outside the Window. The Panel is not painted.
      2. Move the mouse inside the applet space. The Panel is
      know painted properly.
      3. Cover and uncover the Panel with another Window. Panel
      is not repainted.
      4. Move the mouse inside the applet space again. The Panel
      is know painted properly.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The custom Panel should always repaint properly.

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.*;

      public class GreenPanel extends Panel {
        public GreenPanel() {
          setBackground(Color.green);
        }
      }

      __________________________________________________________

      import java.awt.*;
      import java.awt.event.*;
      import java.applet.*;

      public class BugAWTApplet extends Applet {
        BorderLayout borderLayout = new BorderLayout();
        GreenPanel greenPanel = new GreenPanel();

        public BugAWTApplet() {
        }

        public void init() {
          this.setLayout(borderLayout);
          this.add(greenPanel, BorderLayout.CENTER);
        }
      }

      ---------- END SOURCE ----------

      Release Regression From : 1.3.1_03
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Review ID: 145060)
      ======================================================================

            zgu Zhengyu Gu
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: