JDK-6689846 : Flickering of the animated GIF displayed before the applet
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-04-16
  • Updated: 2010-09-08
  • Resolved: 2008-06-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b23Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The animated GIF support added in 6624980 and clarified in 6670475 has a remaining problem with flickering. Because the GrayBoxPanel is an AWT heavyweight component and therefore single-buffered, the separate operations to clear its background color and then paint the animated GIF show up as flickering of the animated GIF. ###@###.### points out that an explicit double-buffering of the GrayBoxPanel's content into an Image can be done, as is already done in the AnimationPanel, which will solve this problem.

Comments
SUGGESTED FIX webrev: http://sa.sfbay.sun.com/projects/deployment_data/6u10/6689846.0 testcase: http://j2se.east.sun.com/deployment/www/tests/1.6.0_10/6689846/
17-04-2008

EVALUATION Added double buffering for the rendering of the custom image in the applet's region to avoid flickering due to the GrayBoxPanel being a heavyweight AWT component. Thanks to ###@###.### for the suggested technique.
17-04-2008