tag:blogger.com,1999:blog-7571541.post115506538240429054..comments2023-05-10T09:50:45.367-04:00Comments on The Rabbit Hole: Mighty Mitochondria! Them Cells Are Animated!technomagehttp://www.blogger.com/profile/08018312109057235866noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7571541.post-75539184712471452642009-02-26T16:18:00.000-05:002009-02-26T16:18:00.000-05:00All code is maintained at http://furbelow.sf.net.All code is maintained at http://furbelow.sf.net.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-88578224723049421422009-02-25T15:00:00.000-05:002009-02-25T15:00:00.000-05:00Hi Tecnomage, I've tried to download the example c...Hi Tecnomage, I've tried to download the example code but the link is not working. Could you try to make it available again or send it to me?Paulo Willershttps://www.blogger.com/profile/17467375850951285713noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-58678963968715249462007-03-22T15:11:00.000-04:002007-03-22T15:11:00.000-04:00You can use the animated icon class provided here,...You can use the animated icon class provided here, or almost as simply just instantiate a javax.swing.Timer which sets the JLabel icon to the next image in the series each time it fires.<BR/><BR/>The code would be simpler, though, if you just convert your series of files into a single animated GIF, then load that file into the JLabel.technomagehttps://www.blogger.com/profile/08018312109057235866noreply@blogger.comtag:blogger.com,1999:blog-7571541.post-68829322485253458512007-03-22T12:53:00.000-04:002007-03-22T12:53:00.000-04:00Hi, sorry to bother you, but it really caught my a...Hi, sorry to bother you, but it really caught my attention where you said:<BR/><I>"Java provides effortless loading and display of animated GIFs. Just tell ImageIcon where it can find the file, then plug the ImageIcon into a JLabel or JButton. Couldn't be simpler."</I><BR/>I'm trying to display an animated gif within a label, but it's not animating. I'm using:<BR/><BR/>image = ImageIO.read(new File(myImages.get(i)));<BR/>...<BR/>JLabel label = new JLabel(new ImageIcon(image));<BR/>panel.add(label);<BR/><BR/>(myImages is an array of file names)<BR/>I'm afraid your example is a bit beyond my level currently - is there a tutorial or example anywhere for updating the animation in a situation like mine?Unknownhttps://www.blogger.com/profile/17544763456225486181noreply@blogger.com