United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6689846 Flickering of the animated GIF displayed before the applet
JDK-6689846 : Flickering of the animated GIF displayed before the applet

Details
Type:
Bug
Submit Date:
2008-04-16
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-06-27
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b23)

Related Reports
Relates:
Relates:
Relates:
Relates:

Sub Tasks

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/
                                     
2008-04-17
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.
                                     
2008-04-17



Hardware and Software, Engineered to Work Together