How to Insert an Animated gif in Java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2935232/show-animated-gif-in-java">Show animated gif in Java</a>  </p>
</blockquote>



<p>How can I insert an animated gif image in Java?</p>

<p>I have already looked at different answers and question. But when I code this, it doesn't show the gif animated.</p>

<pre><code>Image image = Toolkit.getDefaultToolkit().getImage("yourFile.gif");
Image image=ImageIO.read(new File("yourFile.gif"));
</code></pre>

<p>In the end, I use the method <code>drawImage</code>.</p>
