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

1.4.0 Regression: Animated GIFS stop animating on JButtons and JLabels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.4.0, 1.4.1, 1.4.2, 5.0
    • client-libs
    • 2d
    • tiger
    • x86, sparc
    • solaris_10, windows_nt, windows_2000, windows_xp

      Update:
      This bug was seen on Windows NT 4.0 SP6

      Update (see evaluation):
      This seems to be a problem with animated gifs in general.

      ---------------

      Up until 1.4.0, one could use the following to show an animated gif on a JButton or JLabel:

      JLabel animLabel = new JLabel(new ImageIcon("anim.gif"));

      This no longer works as of 1.4.0. It seems that the image will animate one or two cycles and then stop.

      Try the attached test case, which shows a JButton and JLabel, both containing an ImageIcon with an animated gif. In 1.3.0 and 1.3.1, the gif animates indefinitely. In 1.4.0 it stops after one cycle or so.

      (I've attached a sample image "anim.gif" for testing)

            campbell Christopher Campbell (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: