Is there any way to display an animated GIF image in a JLabel
like a JPEG or PNG image? I would like to load an animated GIF from a URL to display it in a label.
If I try it with the common method of static images I just receive the first frame of the GIF...
url = new URL("http://example.gif");
image = ImageIO.read(url);
ImageIcon icon = new ImageIcon(image);
picture = new JLabel();
picture.setIcon(icon);