Infinite loop Gif Java

时间:2015-05-25 19:06:12

标签: java gif

I have able to draw my gif to the frame, and it runs fine. However, once it is finished, the gif just stops. How do I make it restart?

        Image icon = new     
        ImageIcon(getClass().getResource("/images/giphy.gif")).getImage();
        g.drawImage(icon,0,0,600,600,this);

0 个答案:

没有答案