JDK-7155432 : Applets no longer repaint properly
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7u3
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2012-03-21
  • Updated: 2012-06-04
  • Resolved: 2012-03-27
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
Windows 7 Ultimate 64-bit

A DESCRIPTION OF THE PROBLEM :
I don't know when this regression began, but sometime over the past year applets starting exhibiting repaint anomalies.

  To reproduce, you must visit a multi-page web page containing an applet somewhere (ideally in the middle). As you scroll across the page using the wheel mouse you will notice the top or bottom half of the applet will fail to repaint. The webpage background seems to be painting on top of the applet's canvas.

I've seen other applets (I don't remember their URL) where portions were drawn by the applet mixed in with other portions drawn by the browser.

REGRESSION.  Last worked in version 6u29

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Visit http://profs.etsmtl.ca/mmcguffin/learn/java/03-color/ using Firefox 11
2. Scroll down using the wheel mouse.
3. Scroll the applet from the bottom to the top of the page and back.
4. Usually as the applet reaches the middle of the page the top or bottom half of the applet does not repaint properly. You will see the web page's background color instead of the applet's background.


REPRODUCIBILITY :
This bug can be reproduced often.
This led to this bug report(6670586) which talks about rendering problems 
under Windows Vista with Aero enabled. And disabling Aero made the problem go away. 
The applet now repaints slower (sometimes flickering a bit) when scroll 
but at least it ends up painting properly in the end. 

So now we know this problem has something to do with hardware acceleration 
under Windows 7 with Aero enabled.

Comments
EVALUATION The customer said disabling Aero on vista made the problem go away. This is a duplicate of 6670586.
27-03-2012