Animated gif in a JButton which is a CellRenderer...

I'm currently dealing with quite a huge thing...
My cellRenderer is here to give a button aspect, this button has 3 kind of icons in fact :
a cross when the line is ready to be treated
a loading animation while in treatment... and here is the problem
a tick whe the line has been treated
i see the loader (but not always...) and not animated at all ...
I change the states of the button in aother class, which has its own thread....
.. as for no as see the lines being ticked line by line, cool, but if the loader could move between the 2 step, it would be perfect..
Here is my class :
* Create a special cell render for the first column of the images table
* This cell render let us display a JButton associated with the given file in order
* to permit its deletion from the tablelist
* @author Gregory Durelle
public class DeleteCellRender extends JButton implements TableCellRenderer , Runnable{
     private static final long serialVersionUID = 1L;
     int row;
     JTable table;
     public DeleteCellRender(){
         this.setIcon(Smash.getIcon("cross.png"));
          this.setBorderPainted(false);
          this.setForeground(Color.WHITE);
          this.setOpaque(false);
          this.setFocusable(false);
     public Component getTableCellRendererComponent( JTable table, Object value,boolean selected, boolean focused, int row, int column) {
          this.setBackground(table.getBackground());
          if(((DataModel)table.getModel()).getImageFile(row).isSent()){
               this.setIcon(Smash.getIcon("tick.png"));//Smash is my main class & getIcon a static method to retrieve icons throug getRessource(url) stuff
               this.setToolTipText(null);
          else if(((DataModel)table.getModel()).getImageFile(row).isSending()){
               this.setIcon(Smash.getIcon("loader.gif")); //HERE IS THE PROBLEM, IT SHOULD BE ANIMATED :(
               this.setToolTipText(null);
               this.row=row;
               this.table=table;
             Thread t = new Thread(this);
             t.start();
          else{
               this.setIcon(Smash.getIcon("cross.png"));
               this.setToolTipText("Delete this image from the list");
          return this;
     public void run() {
          while(true){
               repaint();//SEEMS TO DO NO DIFFERENCE...
}I tried to add a no-ending repaint but it does not make any difference... so if the Runnable annoy you, consider it deosn't exist ;)
Someone has any idea of how to make an animated gif in a JButton which is in fact a CellRenderer ??....
.. or maybe a better idea to make the loader appearing at the place of the cross, before the appearition of the tick....
Edited by: GreGeek on 11 juil. 2008 23:04

whooo :( you mean making a customized button ?
like : public class MyButton extends AbstractButton{
   public void paintComponents(Graphics g){
      ...//img1 - wait 15ms - img2 - wait15ms - img3 - etc
}that would be a solution, but i was pretty sure it would be possible to do more simple, and that i only forgot a very small thing to make it work...

Similar Messages

  • Problems only with Adobe ImageReady Animated GIF

    Anyone encounter a problem and solution for getting ImageReady animated GIF working properly in a java app? Developer placed 2 animated gifs in the app which caused the CPU system resources to spike to 100%.
    We then tested animated GIFs made from Macromedia Flash and also a freeware animated GIF editor, and both work out fine in the same java app.
    It's odd, but we think there's a problem specifically with animated GIFs produced by Adobe's Image Ready in the Creative Suite 1 package.
    Anyone have more insight?

    Its been a long time since I have used ImageReady, and then it was for about year when CS3 came out. So my memory if very rusty with that program. (In other words I am hoping that I am not too far off base, lol.)
    Check and make sure there are the same number of layers as there are frames. I believe there is an option in the animation palette for sending the frames to layers. Once you know that the frames and layers match (plus any additional layers you create), you can clear out the animation and reapply the layers to frames.
    You should find a small icon in the upper right hand corner of the animation palette and the layers palette. Clicking them will bring up a menu that will do what you need.

  • Need help with publishing as animated .gif

    I'm having trouble publishing my project as an animated .gif.  My project, which consists of two different animated movie clips, plays just fine when test it (Shift + Enter).  But, when I go to publish it, the animations don't show up.  The settings are exactly the same as with my other animated .gifs.
    Any suggestions???
    Thanks!

    If you try to 'publish' as an app, and you use the words ebook or just book, the review teams are likely to reject and tell you to do a book instead, so be prepared to not call it any type of book and to deliver something that showcases the device and iOS as best as you can if you take that route...it's non-trivial, mostly, so be prepared to learn any skills you may not have yet need going in.
    Look at the book 'Yellow Submarine' for what I consider a good example of a standard epub w/m'media. it can be done, but as noted, iBA is iPad only, so....good luck.

  • Resized animated gif ImageIcon not working properly with JButton etc.

    The problem is that when I resize an ImageIcon representing an animated gif and place it on a Jbutton, JToggelButton or JLabel, in some cases the image does not show or does not animate. More precicely, depending on the specific image file, the image shows always, most of the time or sometimes. Images which are susceptible to not showing often do not animate when showing. Moving over or clicking with the mouse on the AbstractButton instance while the frame is supposed to updated causes the image to disappear (even when viewing the non-animating image that sometimes appears). No errors are thrown.
    Here some example code: (compiled with Java 6.0 compliance)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test
         public static void main(String[] args)
              new Test();
         static final int  IMAGES        = 3;
         JButton[]           buttons       = new JButton[IMAGES];
         JButton             toggleButton  = new JButton("Toggle scaling");
         boolean            doScale       = true;
         public Test()
              JFrame f = new JFrame();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel p = new JPanel(new GridLayout(1, IMAGES));
              for (int i = 0; i < IMAGES; i++)
                   p.add(this.buttons[i] = new JButton());
              f.add(p, BorderLayout.CENTER);
              f.add(this.toggleButton, BorderLayout.SOUTH);
              this.toggleButton.addActionListener(new ActionListener() {
                   @Override
                   public void actionPerformed(ActionEvent e)
                        Test.this.refresh();
              f.setSize(600, 300);
              f.setVisible(true);
              this.refresh();
         public void refresh()
              this.doScale = !this.doScale;
              for (int i = 0; i < IMAGES; i++)
                   ImageIcon image = new ImageIcon(i + ".gif");
                   if (this.doScale)
                        image = new ImageIcon(image.getImage().getScaledInstance(180, 180, Image.SCALE_AREA_AVERAGING));
                   image.setImageObserver(this.buttons);
                   this.buttons[i].setIcon(image);
                   this.buttons[i].setSelectedIcon(image);
                   this.buttons[i].setDisabledIcon(image);
                   this.buttons[i].setDisabledSelectedIcon(image);
                   this.buttons[i].setRolloverIcon(image);
                   this.buttons[i].setRolloverSelectedIcon(image);
                   this.buttons[i].setPressedIcon(image);
    Download the gif images here:
    http://djmadz.com/zombie/0.gif
    http://djmadz.com/zombie/1.gif
    http://djmadz.com/zombie/2.gif
    When you press the "Toggle scaling"button it switches between unresized (properly working) and resized instances of three of my gif images. Notice that the left image almost never appears, the middle image always, and the right image most of the time. The right image seems to (almost) never animate. When you click on the left image (when visble) it disappears only when the backend is updating the animation (between those two frames with a long delay)
    Why are the original ImageIcon and the resized ImageIcon behaving differently? Are they differently organized internally?
    Is there any chance my way of resizing might be wrong?

    It does work, however I refuse to use SCALE_REPLICATE for my application because resizing images is butt ugly, whether scaling up or down. Could there be a clue in the rescaling implementations, which I can override?
    Maybe is there a way that I can check if an image is a multi-frame animation and set the scaling algorithm accordingly?
    Message was edited by:
    Zom-B

  • Animated gif on JButton is not working

    Hi all,
    I have a JButton, which is used as a 'search button'. I want my search button to show an animated globe gif when search is going on. I have my code as below.
    JButton searchButton = new JButton(MyUtilities.searchIcon());
    ImageIcon animatedGlobe = MyUtilities.animatedGlobeGif();
    searchButton.setPressedIcon(animatedGlobe );
    At runtime the button is showing a static globe which is not animating.
    Can any one please answer what could be the problem?
    Thanks in advance,
    amar

    Thanx Demanic ,
    I am doing swings for first time. Can you please tell me how to repaint the button using seperate thread?
    Thanks,
    amar

  • Using animated GIF as JButton icon

    Hi,
    I am trying to use an animated gif as an icon in a JButton.
    Everything works as it should except the animation is static!!
    Screenshots and code are at:
    http://www.beammicrosystems.com/Java/JButton.html
    Anyone got any good ideas?
    Regards,
    Andrew

    well i think you can do this in a label you can watch for a animation like you want a gif so my idea is that you should just make the label as a button and them :
    JLabel label = new JLabel();
    label.setIcon = new ImageIcon("name.gif");
    and put it the setBounds
    label.setBounds(x,y,long,tall);
    and if you want that looks like a button just do this
    label.setBorder(BorderFactory.createRaisedBevelBorder());
    thats all.

  • An animated gif which dasnt refreshed..

    Hi all !
    First let me apologize for my bad english.
    Secondly, I tried to show on the screen transpaernt animated gif, in another words, sprite(character) which walk on the desktop, well, i succsed, but there is a problem, if the sprite move is head, the on the screen you will see the sprite before and after the movmenet, there is a trail.
    i hope that you could help me.
    my code is very simple at this moment:
    public class WS extends JWindow
         Image img=null;
         Image img2=null;
         Toolkit tk=null;
         public WS()
              tk=Toolkit.getDefaultToolkit();
              this.setSize(500, 500);
              this.setLocation(500, 500);
              img2=tk.getImage("MijalNo.gif");
              this.prepareImage(img2, null);
              this.setVisible(true);
         public void paint(Graphics g)
              g.drawImage(img2, 0, 0, this);     
    }thank you.

    For those who doenst understand my problem, the here is the printscreen:
    http://members.lycos.co.uk/ofir3dvb2/theprob.JPG
    Edited by: ofir3dvb on Mar 16, 2008 5:08 AM

  • What can I do to add animated gif to my Button

    hi everybody,
    I have a JButton, which is used as a 'search button'. I want my search button to show an animated globe gif when search is going on. I have my code as below.
    JButton searchButton = new JButton(MyUtilities.searchIcon());
    ImageIcon animatedGlobe = MyUtilities.animatedGlobeGif();
    searchButton.setPressedIcon(animatedGlobe );
    /*******************************************************/At runtime the button is showing a static globe which is not animating.
    I used to be tipped that I use Thread to make the picture moving ! So, can you show me the way !
    Quin
    (same idea on amar)

    Plug your iPod into iTunes and look under its Summary tab.  There should be a colored bar towards the bottom indicating how much of each of content you have synced to your iPod including music and podcasts, etc.
    If your music is taking up a majority of the space on your Shuffle, you might want to double check their format.  You can do this by right->clicking on a song and choosing Get Info.  When the window pops up for it you should be under a tab that gives the track's format.
    B-rock

  • Open and edit animated .gif while preserving frame timing

    CS4 Premium Design Edition, Win XP
    I was disappointed with the removal of Image Ready from CS3 because although some of the functionality was placed into Photoshop 10, there was no way to open and edit an existing animated .gif while preserving the timing of each individual frame. I was told on the PS forum at the time that I really needed to use Fireworks. I resented that, because I was very happy with Image Ready and I didn't want to have to learn a new application just to gain functionality that had been included in previous versions of PS/IM.
    I've now got CS4 Premium Design Edition which of course includs Fireworks... and here's what Help has to say on the subject of imported .gifs.
    "Note: When you import an animated GIF, the state delay setting defaults to 0.07 seconds. If necessary, use the States panel to restore the original timing."
    This is no use to me. What if I don't know the individual frame timings? What if there are 200 frames with varying timings?
    Simple question: which current Adobe product is capable of importing a .gif while retaining the frame timings? If anyone knows, or if I've misunderstood the nature of the Fireworks Help quote above, I'd really appreciate some input here. Thanks :)
    Not so simple question: why was an excellent gif-editing application thrown out to have its functionality partially replaced by a bunch of scripts and half-effective workarounds cooked up by desperate users ("import a gif by using the video import and typing *.* into the filename box..")? It's a fair question I think.
    Mark

    Hi Bob, that's not glib at all, it's a reasonable question.
    I uninstalled it along with everything else when I installed CS3, in the reasonable expectation that whatever replaced IR would be at least equal in functionality.
    Perhaps I should just dig out CS2 and install IM from there, but I have some serious reservations about doing so, because I don't know if/how a partial install of CS2 will impact upon my installation of CS4, and I'm not confident of getting support.
    I am also curious to know if/why Adobe actually removed basic functionality without replicating or replacing it in their other software. I really want to know: which recent, currently supported Adobe product
    should I be using in order to regain this functionality? Or do Adobe no longer produce a geniuinely comprehensive .gif-editing application?
    Mark

  • Disabled JMenuItem doesn show animated gif

    Hi there
    I would like to have a popup menu with actions that are enabled after they have finished with some background task taking some time. Basically this works fine for the enabling action on a shown popup. However, adding an animated gif as the icon or disabled icon does not show it in disabled state. In enabled state it works perfect. Please have a try with the sample code. You should see the disabled item for 2 secs and the icon is not showing up. After being enabled, it does. Invoking the menu again shows the animated gif in its last state left, but not moving any more.
    I guess, repaints are not done appropriately in disabled state... Any ideas how to solve that would be highly appreciated :-)
    Actually I used the icon at http://mentalized.net/activity-indicators/indicators/pascal_germroth/indicator.white.gif
    Cheers
    Daniel
    public class Main
      public static void main(String[] args)
        final JFrame frame = new JFrame();
        frame.addMouseListener(new MouseAdapter()
          public void mousePressed(final MouseEvent e)
            final JPopupMenu popup = new JPopupMenu();
            popup.add(new JMenuItem("Open..."));
            popup.add(new JMenuItem("Close"));
            final JMenuItem action = new JMenuItem("Long loading until enabled");
            action.setIcon(new ImageIcon("C:/spinner.gif"));
            action.setDisabledIcon(new ImageIcon("C:/spinner.gif"));
            popup.add(action).setEnabled(false);
            popup.show(e.getComponent(), e.getX(), e.getY());
            SwingUtilities.invokeLater(new Runnable()
              public void run()
                try
                  Thread.sleep(2000);
                  action.setEnabled(true);
                catch (InterruptedException e1)
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(300, 200);
        frame.setVisible(true);
    }Edited by: daniel.frey on Apr 22, 2009 7:50 AM

    The problem is that you are causing the EDT to sleep, which means the GUI can't repaint itself. Read the section from the Swing tutorial on Concurrency to understand what is happening.

  • Create animated GIF using imageio

    How do you create an animated GIF using the J2SE's javax.imageio classes?
    I have been browsing these 3 threads (one of which I participated in) to try and develop an SSCCE of creating an animated GIF.
    [Writing out animated gifs with ImageIO?|http://forums.sun.com/thread.jspa?threadID=5204877]
    [Wirting image metadata to control animated gif delays |http://forums.java.net/jive/thread.jspa?messageID=214284&]
    [Help with GIF writer in imageio|http://www.javakb.com/Uwe/Forum.aspx/java-programmer/32892/Help-with-GIF-writer-in-imageio]
    (pity I did not prompt the OP on that last one, to supply an SSCCE.)
    Unfortunately, my efforts so far have been dismal. Either, without the IIOMetadata object, the GIF has frames with no delay, and it cycles just once, or with the IIOMetadata object I get an error.
    IIOInvalidTreeException: Unknown child of root node!Can anyone point me in the right direction?
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    import java.io.*;
    import java.net.URL;
    import java.util.Iterator;
    import javax.imageio.*;
    import javax.imageio.metadata.*;
    import javax.imageio.stream.*;
    import org.w3c.dom.Node;
    class WriteAnimatedGif {
      /** Adapted from code via Brian Burkhalter on
      http://forums.java.net/jive/thread.jspa?messageID=214284& */
      public static Node getRootNode(String delayTime) {
        IIOMetadataNode root =
          new IIOMetadataNode("javax_imageio_gif_stream_1.0");
        IIOMetadataNode gce =
          new IIOMetadataNode("GraphicControlExtension");
        gce.setAttribute("disposalMethod", "none");
        gce.setAttribute("userInputFlag", "FALSE");
        gce.setAttribute("transparentColorFlag", "FALSE");
        gce.setAttribute("delayTime", delayTime);
        gce.setAttribute("transparentColorIndex", "255");
        root.appendChild(gce);
        IIOMetadataNode aes =
          new IIOMetadataNode("ApplicationExtensions");
        IIOMetadataNode ae =
          new IIOMetadataNode("ApplicationExtension");
        ae.setAttribute("applicationID", "NETSCAPE");
        ae.setAttribute("authenticationCode", "2.0");
        byte[] uo = new byte[] {
          (byte)0x21, (byte)0xff, (byte)0x0b,
          (byte)'N', (byte)'E', (byte)'T', (byte)'S',
          (byte)'C', (byte)'A', (byte)'P', (byte)'E',
          (byte)'2', (byte)'.', (byte)'0',
          (byte)0x03, (byte)0x01, (byte)0x00, (byte)0x00,
          (byte)0x00
        ae.setUserObject(uo);
        aes.appendChild(ae);
        root.appendChild(aes);
        return root;
      /** Adapted from code via GeogffTitmus on
      http://forums.sun.com/thread.jspa?messageID=9988198 */
      public static File saveAnimate(
        BufferedImage[] frames,
        String name,
        String delayTime) throws Exception {
        File file = null;
        file = new File(name+".gif");
        Node root = getRootNode(delayTime);
        ImageWriter iw = ImageIO.getImageWritersByFormatName("gif").next();
        ImageOutputStream ios = ImageIO.createImageOutputStream(file);
        iw.setOutput(ios);
        //IIOImage ii = new IIOImage(frames[0], null, null);
        //IIOMetadata im = iw.getDefaultStreamMetadata(null);
        //IIOMetadata im = new AnimatedIIOMetadata();
        //im.setFromTree("gif", root);
        iw.prepareWriteSequence(null);
        for (int i = 0; i < frames.length; i++) {
          BufferedImage src = frames;
    ImageWriteParam iwp = iw.getDefaultWriteParam();
    IIOMetadata metadata = iw.getDefaultStreamMetadata(iwp);
    System.out.println( "IIOMetadata: " + metadata );
    //metadata.mergeTree(metadata.getNativeMetadataFormatName(), root);
    metadata.setFromTree(metadata.getNativeMetadataFormatName(), root);
    //Node root = metadata.getAsTree("javax_imageio_gif_image_1.0");
    IIOImage ii = new IIOImage(src, null, metadata);
    iw.writeToSequence( ii, (ImageWriteParam)null);
    iw.endWriteSequence();
    ios.close();
    return file;
    public static void main(String[] args) throws Exception {
    // uncomment the other two if you like, but we can
    // see it work or fail with just the first and last.
    String[] names = {
    "bronze",
    //"silver",
    //"gold",
    "platinum"
    String pre = "http://forums.sun.com/im/";
    String suff = "-star.gif";
    BufferedImage[] frames = new BufferedImage[names.length];
    for (int ii=0; ii<names.length; ii++) {
    URL url = new URL(pre + names[ii] + suff);
    System.out.println(url);
    frames[ii] = ImageIO.read(url);
    File f = saveAnimate(frames, "animatedstars", "500");
    JOptionPane.showMessageDialog( null, new ImageIcon(f.toURI().toURL()) );
    Desktop.getDesktop().open(f);
    ImageInputStream iis = ImageIO.createImageInputStream(f);
    //System.out.println("ImageReader: " + ir1);
    //System.out.println("IIOMetadata: " + ir1.getStreamMetadata());
    Iterator itReaders = ImageIO.getImageReaders(iis);
    while (itReaders.hasNext() ) {
    ImageReader ir = (ImageReader)itReaders.next();
    System.out.println("ImageReader: " + ir);
    System.out.println("IIOMetadata: " + ir.getStreamMetadata());

    According to imagio's [gif metadata specification|http://java.sun.com/javase/6/docs/api/javax/imageio/metadata/doc-files/gif_metadata.html], the metadata you are specifying is image-specific metadata. The stream metadata is global metadata applicable to all the images.
    So change this,
    IIOMetadataNode root =
        new IIOMetadataNode("javax_imageio_gif_stream_1.0");to this,
    IIOMetadataNode root =
        new IIOMetadataNode("javax_imageio_gif_image_1.0");and this,
    IIOMetadata metadata = iw.getDefaultStreamMetadata(iwp);
    System.out.println( "IIOMetadata: " + metadata );
    //metadata.mergeTree(metadata.getNativeMetadataFormatName(), root);
    metadata.setFromTree(metadata.getNativeMetadataFormatName(), root);
    //Node root = metadata.getAsTree("javax_imageio_gif_image_1.0");to this,
    IIOMetadata metadata = iw.getDefaultImageMetadata(
            new ImageTypeSpecifier(src),null);
    System.out.println("IIOMetadata: " + metadata);
    metadata.mergeTree(metadata.getNativeMetadataFormatName(), root);Here is your program again, but with the above changes.
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    import java.io.*;
    import java.net.URL;
    import java.util.Iterator;
    import javax.imageio.*;
    import javax.imageio.metadata.*;
    import javax.imageio.stream.*;
    import org.w3c.dom.Node;
    class WriteAnimatedGif {
        /** Adapted from code via Brian Burkhalter on
        http://forums.java.net/jive/thread.jspa?messageID=214284& */
        public static Node getRootNode(String delayTime) {
            IIOMetadataNode root =
                    new IIOMetadataNode("javax_imageio_gif_image_1.0");
            IIOMetadataNode gce =
                    new IIOMetadataNode("GraphicControlExtension");
            gce.setAttribute("disposalMethod", "none");
            gce.setAttribute("userInputFlag", "FALSE");
            gce.setAttribute("transparentColorFlag", "FALSE");
            gce.setAttribute("delayTime", delayTime);
            gce.setAttribute("transparentColorIndex", "255");
            root.appendChild(gce);
            IIOMetadataNode aes =
                    new IIOMetadataNode("ApplicationExtensions");
            IIOMetadataNode ae =
                    new IIOMetadataNode("ApplicationExtension");
            ae.setAttribute("applicationID", "NETSCAPE");
            ae.setAttribute("authenticationCode", "2.0");
            byte[] uo = new byte[]{
                (byte) 0x21, (byte) 0xff, (byte) 0x0b,
                (byte) 'N', (byte) 'E', (byte) 'T', (byte) 'S',
                (byte) 'C', (byte) 'A', (byte) 'P', (byte) 'E',
                (byte) '2', (byte) '.', (byte) '0',
                (byte) 0x03, (byte) 0x01, (byte) 0x00, (byte) 0x00,
                (byte) 0x00
            ae.setUserObject(uo);
            aes.appendChild(ae);
            root.appendChild(aes);
            return root;
        /** Adapted from code via GeogffTitmus on
        http://forums.sun.com/thread.jspa?messageID=9988198 */
        public static File saveAnimate(
                BufferedImage[] frames,
                String name,
                String delayTime) throws Exception {
            File file = null;
            file = new File(name + ".gif");
            Node root = getRootNode(delayTime);
            ImageWriter iw = ImageIO.getImageWritersByFormatName("gif").next();
            ImageOutputStream ios = ImageIO.createImageOutputStream(file);
            iw.setOutput(ios);
            //IIOImage ii = new IIOImage(frames[0], null, null);
            //IIOMetadata im = iw.getDefaultStreamMetadata(null);
            //IIOMetadata im = new AnimatedIIOMetadata();
            //im.setFromTree("gif", root);
            iw.prepareWriteSequence(null);
            for (int i = 0; i < frames.length; i++) {
                BufferedImage src = frames;
    ImageWriteParam iwp = iw.getDefaultWriteParam();
    IIOMetadata metadata = iw.getDefaultImageMetadata(
    new ImageTypeSpecifier(src), null);
    System.out.println("IIOMetadata: " + metadata);
    metadata.mergeTree(metadata.getNativeMetadataFormatName(), root);
    IIOImage ii = new IIOImage(src, null, metadata);
    iw.writeToSequence(ii, (ImageWriteParam) null);
    iw.endWriteSequence();
    ios.close();
    return file;
    public static void main(String[] args) throws Exception {
    // uncomment the other two if you like, but we can
    // see it work or fail with just the first and last.
    String[] names = {
    "bronze",
    //"silver",
    //"gold",
    "platinum"
    String pre = "http://forums.sun.com/im/";
    String suff = "-star.gif";
    BufferedImage[] frames = new BufferedImage[names.length];
    for (int ii = 0; ii < names.length; ii++) {
    URL url = new URL(pre + names[ii] + suff);
    System.out.println(url);
    frames[ii] = ImageIO.read(url);
    File f = saveAnimate(frames, "animatedstars", "500");
    JOptionPane.showMessageDialog(null, new ImageIcon(f.toURI().toURL()));
    Desktop.getDesktop().open(f);
    ImageInputStream iis = ImageIO.createImageInputStream(f);
    //System.out.println("ImageReader: " + ir1);
    //System.out.println("IIOMetadata: " + ir1.getStreamMetadata());
    Iterator itReaders = ImageIO.getImageReaders(iis);
    while (itReaders.hasNext()) {
    ImageReader ir = (ImageReader) itReaders.next();
    System.out.println("ImageReader: " + ir);
    System.out.println("IIOMetadata: " + ir.getStreamMetadata());

  • Complaint: Animated GIF, Photoshop CS4

    I am a freelance print designer. Needless to say that I have upgraded to the Design Standard Edition of the Creative Suite 4. Still, some customers ask me to do their web banners, too.
    Fact 1:
    There is an animation palette in Photoshop CS4 Standard.
    Fact 2:
    You can create animations with that palette.
    Fact 3:
    You can save the animation as an animated GIF.
    Fact 4:
    Opening the animated GIF, you only get the first frame, so you cannot edit the animation or content inside the GIF.
    Fact 5:
    I need to alter a few animated GIFs which I created several years ago using Photoshop CS2. Due to a harddrive crash, I don't have access to the original layered PSD files any more.
    Fact 5:
    Photoshop CS4, the most advanced image editing tool on the face of the earth, is absolutely useless at this point, and I have to find freeware or shareware to do the job. Finding and purchasing this sort of software is MY time, and that is MY money.
    Whatever drove Adobe to cripple Photoshop CS4 Standard, whatever drove them to expel the simple "Open Animated GIF" feature from Photoshop CS4, it was the wrong decision.
    This, Adobe, is a customer complaint. Take it serious. There is competition, and I hear a lot about GIMP these days.
    Frustrated,
    Gero

    I know this thread is getting on a bit now, but I do have the answers.
    Quite simply, as far as I can tell, this cannot be done without Quicktime installed.
    To open an animated gif in CS4 on a PC:
    1. Go to File->Import->Video Frames to Layers
    2. In the File Name box type “*” ( or you can type the name manually) The window will now show every type of file
    3. Select your gif and you are done
    To open animated gif in CS4 on a MAC:
    1.  Go to open, select your GIF, then in the bottom left corner of the open file dialogue box select Quicktime Movie as the format, then open your GIF.
    2.  You’ll need to open your animations window by going to window -> animation. This will bring up the time line.
    3.  If you want to have all of the frames broken up into layers, click the options in the animation window, and select “Flatten Frames into Layers”.
    This will give you access to all the frames as layers and you can now edit the GIF as though it was a movie.
    I hope this helps to ease somebody's frustration.

  • Question on Animated GIF Timing

    I have a weather-type animated GIF, and believe me, it is not
    my choice or
    idea, but anyway I need to get this working.
    Here it is:
    http://www.sendto.org/temp/weather-cvia.gif.
    In this animation, all the frames are set to 100 but the
    timing is not
    smooth. No idea why. When I change frame 2 to 50, the timing
    seems to me
    to be closer to even, but it makes no sense to cut the time
    on frame 2 to
    have all frames display for equal time. Is anyone else seeing
    this?
    The source file is here:
    http://www.sendto.org/temp/weather-cvia.png
    Many thanks,
    Tony

    Hi Anthony:
    Are you testing the playback in a browser? The FW playback -
    at one time
    anyway - was not a reliable method for previewing.
    Have you checked to make sure there are not several frames
    identical to
    frame 2 in the animation? That too would give the impression
    that frame
    2 is staying up longer.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver
    Anthony Bollinger wrote:
    > "Linda Rathgeber **Adobe Community Expert - Fireworks**"
    <[email protected]>
    > wrote in message
    news:[email protected]...
    >> The lower the number, the faster and smoother the
    animation. It needs more
    >> frames to make it really smooth.
    >
    > Linda! Thanks for the reply!
    >
    > I sort of get what you are saying . . . but I guess I
    don't understand why
    > the numbers for each frame don't work. I don't have the
    "raw materials" to
    > supply frames in between the existing ones, although I
    might be able to work
    > up something. But let me make sure we are connecting.
    >
    > I think you are saying the animation takes "jumps" --
    that is fine as far as
    > what is needed. The whole problem is those jumps are not
    even, although I
    > have given fireworks identical numbers for each frame.
    We slowed the
    > animation down so that it would not be so annoying (it
    was originally set to
    > somewhere around 10 per frame and I changed it to 50,
    then 100).
    >
    > The whole problem with this animation is that frame 2
    displays for *longer*
    > than the other frames, even though I have told it to
    display just as long in
    > the PNG file. This must be a bug with either the
    exported GIF, the display
    > engine, or FW. Looks like the best way to fix it is to
    change the frame 2
    > value to 50, which is just a hack. I wondered if anyone
    has encountered
    > this before. There is nothing wrong with the PNG file,
    so this has to be a
    > bug.
    >
    > Thanks!
    > Tony
    >
    >

  • How to edit a Animated Gif file and convert to SWF

    I am using the creative cloud with fireworks. I chose the free trial with buying in mind if I saw it work properly. I simply want to upload an animated GIF file and then download it as a SWF file. I saw someone on youtube do this and it's not that if I get on the correct page I would not know how to do that but I just cannot find how to get the GIF into the software to edit. It has just simply put them in the creative cloud folder which can open them on IE> How do i make it available to edit and convert to SWF please? Thanks in advance.

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Animated GIF Export issues

    I have a simple Flash animation which I'd like to be made
    into a transparent GIF.
    When I do the GIF export, only the first frame of my
    movieclips (which are placed in the main timeline) get rendered. It
    seems like Flash only records the main timeline preview output into
    the GIF file, and does not play movieclip objects. You would expect
    the GIF recording to be of the same preview as when you hit
    ctrl+enter (essentially final playback).
    Because of this, the GIF export is pointless. The only way to
    use it is to have all your animations occur in the main timeline,
    and not within movieclips. It doesn't work for me (and for most
    people?), because I need to easily scale my animations, which is
    doable by just resizing a movieclip.
    Is there a way around this in Flash? Am I missing something?
    I've had to use a 3rd-party tool (Magic SWF2GIF) to do the
    GIF recording.
    My other issue is Flash cannot export transparent GIF's it
    seems. Because of this, I have to rely on more 3rd-party GIF tools,
    most of which are rubbish.
    In the end, I've had to take snap shots of every individual
    frame and edit each frame as individual files in Photoshop to do
    all the cropping and transparency just right. Real pain when you
    are talking 50 frames, and having to do multiple animations.
    Is there a way to export transparent GIF's in Flash?
    Seems kind of dumb that I have all this high-end software and
    loads of tools... and I still have to edit things frame by
    frame.

    Thank you for your reply!
    I check exported GIFs in various browsers and XnView viewer.
    It's definitely not a preview  issue - i have 32Gb of RAM and Nvidia Quadro 4000 GPU on my system.
    I believe the issue is with transparency, because i'm able to export GIFs with solid background just fine
    GIF export dialogue window has 'Transparency' checkbox, so it looks like it should be possible to export an animated GIF with transparent background, but for some reason i'm getting all frames at the same time
    thank you

Maybe you are looking for

  • Unused BOM components not getting filtered

    I have written a Query for BOM, which is having ECM active.  Earlier there were 14 components. 3 components have been removed. But If I execute my Query--it is getting all the 14 components instead of 11. In CS03--If I execute, with both Valid from a

  • Error messages in webdynpro

    Hi, I'm currently working on developing an ESS scenario for IT0573 Australia (Absences). For this scenario I've not used the FPM completely. The roadmap is as follows: Overview -> Detail -> Review and Save -> Confirmation. The node Detail has a sub-r

  • Another "2 seconds on 3 off" problem (Hope this is the right place)

    It's kinda hard to figure out what goes where around here, so if this is in the wrong spot, feel free to move it - but please tell me WHERE you moved it to. Thanks. The guts: MoBo: MSI P55M-GD45 Processor: Intel I7-860 Memory: 4x2GB Corsair XMS3 Grap

  • Upgrading Acrobat Reader

    I feel its time to upgrade my Acrobat Reader. I'm getting messages that some of the content of my forms are unable to be viewed with the my present version and I think some documents are not opening at all. When I check in Control Panel's Add or Remo

  • N00b needs advice---community college SAP course

    Hello experts, Iu2019m here for advice and help. I had started looking into SAP a while back but for other circumstances I had to put that to the side for a while. Now Iu2019m back more motivated then ever and ready to absorb all the information poss