Java endless Gif loop

I can draw my gif for the frame and it works fine. However, once this is done, the gif will just stop. How do I restart it?

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

      

+3


source to share





All Articles