I got 5 gif files, and I could make it paint and repaint
under JApplet as anumation by Timer. But if I need to
put the animation inside a JButton, how to do that?
I know I could put an image inside a JButton
by the following method:
ImageIcon duke = new ImageIcon("T1.gif");
JButton imageBut = new JButton(duke);//then this is a image button
But I don't know how to put sequence image files into a
JButton to make it like an animation button.
This problem has troubled me for 3 days....
I appreciate if there is any suggestion or examples.
Thanks in advance!