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

Very bad flickering with animation in JApplet

XMLWordPrintable

        Filed on behalf of ###@###.### of the F3 team.

        When repeatedly drawing images into a JApplet very bad flickering is introduced. Apparently some entity is causing the applet to be incorrectly cleared to the background color. This behavior does not occur with a standalone application in its own top-level component.

        http://blogs.sun.com/chrisoliver/resource/motorola_bad.html shows the very bad flickering behavior.

        http://blogs.sun.com/chrisoliver/resource/motorola.html works around the issue by drawing the image into a JLabel's icon and then drawing the JLabel. It is unclear why this works around the issue. Perhaps it is related to Swing's gray rect fix.

        Forcibly specifying -Dsun.awt.noerasebackground=true in the Java Plug-In's JVM startup parameters does not work around the issue.

        The primary problem is that it is unclear who is clearing the window to the background color, and that there is a difference in behavior between the applet and standalone application case.

              alexp Alexander Potochkin (Inactive)
              kbr Kenneth Russell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: