0
    public class Main {
    public static void main(String[] args) throws MalformedURLException {
        URL url= new URL("<file path>");
        Icon icon= new ImageIcon(url);
        JLabel label= new JLabel(icon);

        JFrame mainFrame = new JFrame("Test");
        mainFrame.getContentPane().add(label);
        mainFrame.setSize(800, 600);
        mainFrame.setVisible(true);
        mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        mainFrame.setResizable(false);
    }
}

how can i change the speed of Gif file ? i tried to find how to change the speed of JFrame frame but i didn't find anything

Rakesh KR
  • 6,357
  • 5
  • 40
  • 55
Nick
  • 19
  • 8
  • 1
    Look into http://stackoverflow.com/questions/26801433/fix-frame-rate-of-animated-gif-in-java – Tunaki Jan 14 '17 at 13:49

1 Answers1

1

You can't. All you can do is create another gif based on your current one. Use ImageMagick for that

Detect current speed:

identify -verbose your.gif | grep Delay

Delay: 5x100
...

Create a new gif:

convert -delay 10x100 your.gif your_slow.gif
deathangel908
  • 8,601
  • 8
  • 47
  • 81