I tried displaying an animated gif in a JLabel by doing this...
Icon pikachu = new ImageIcon(getClass().getResource("/images/ezgif.com-gif-maker.gif"));
JLabel gif = new JLabel();
gif.setSize(60,60);
gif.setIcon(pikachu);
this.add(gif); //this is a JPanel
Apparently, the gif leaves trails on its movements as seen here in this image...
The original gif is the one on the top left. I thought the gif was too fast or too slow, so I tried adjusting the speed (which is the bottom left). Unfortunately, it wasn't the cause for the trails left by the gif (the dark lines/parts on top of the tail and ear part of the one on the right is the trails I'm talking about).
I was wondering what causes this and how to fix it