title: Image animation in java swing on click
body: <p>Say I have a <code>JFrame</code> and a <code>JButton</code> in it. I want to display an animated (<code>.gif</code>) image once I click the button. While another event (say <code>ActionEvent e</code>) stops displaying the animation in the <code>JFrame</code>. What should be my approach?</p>