JDK-4664013 : REGRESSION: Custom AWT Panel doesn't repaint properly
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-04-06
  • Updated: 2002-04-15
  • Resolved: 2002-04-15
Related Reports
Duplicate :  
Description

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) 
======================================================================

Comments
EVALUATION No longer reproducible in 1.4.1. ###@###.### 2002-04-14 It can still be reproduced with 1.4.1-b8 on Windows 2000, but seems works fine on Winnt. ###@###.### 2002-04-15
14-04-2002