How can I place my animated gif with JLabel?

Hello, everyone:
I've got some problems with displaying animated picture when I
use ImageIcon class in the JLabel. The picture played very fast than the normal speed. Does anybody have this problem?
I need your help, thank. If I type some impolite grammer, please forgive me. My English is poor. Thanks

I Know what problem it is.
Someone tell me that my animated picture does'nt set the frame delay.
And I use this site's source code to change my frame delay.
http://www.fmsware.com/stuff/gif.html

Similar Messages

  • How can I edit an animated GIF?

    is there a way to add a animated GIF into your work, when I try to add one I am told that it will be a single layer. I downloaded a GIF from the web and trying to incorparate it into a web site header.

    Well, you are in luck, sort of. You have all the apps needed to create an animated gif. However that does not mean that the image you download was already or not. It could be a single image.
    A couple of things to go over
    1) When downloading from the net make sure you have permission to use that image before sharing with the public, as the image is protected by copyright laws in the US. (Images that state - Permission to use commercially, copyright free, common law licence - Generally are meant to share with the general public, granted that you post somewhere who you got the image from(the Least anyone can do it give credit where credit is due)
    2)Since you have the Master Collection or the CS4 Master Suite, you have every app that is need to create your own works of art. Photoshop, After Effects, Premeire pro are all capable of creating animated gifs. With the latter two being easier than photoshop.
    Since you have CS4 photoshop and this is the photoshop forum, we will keep it there.
    The version of Photoshop that comes in the master suite is the extended version of photoshop which is require for most of the animations it can do. Though, think and am not certain that the standard version can create animated gif files.
    OK, ok we got a lot of mumbo jumbo above so lets get into how to create an animated gif.
    First we need to determine if we are editing an animated gif or creating one from scratch. To load an animated gif all you need to do is file>open then select the file. Simple enough.
    The file will place each frame onto its own layer and if you have the animation panel open (If not select Windows>Animation ) Each frame will be placed there as well.
    Lets say we are going to edit a frame or better yet introduce a new frame. In the upper right hand corner of the animation panel is a small icon. Clicking it will pop up a menu. In that menu select delete animation. Don't worry your layers are safe, it only removes the frames from the animation panel.
    Now you can either change something in one of the layers or add a layer where you want the frame intoduced.
    When you are done you can select that same icon in the animation panel to pop up the menu and select Make frames from layers This will place all the layers back into the animation panel. This has to happen in order to save an animated gif.
    You can now use the File>save to web or File>Save to web and devices (This optiuon changed during one of the version, I don't recall so both are listed or look for something close to that)
    Select Gif for the format then the save button, where you can choose a location and file name. It will automatically add a hyphen between any words that normally are spaces for the web.
    OK, If you read the above, you probably alread realize how to create one from scratch. Just add a new layer for each frame and follow the steps above to add it to the animation panel and save for web.
    I know it sounds like a lot, but once you have done it a few times, it actually fairly simple.
    OK, Bonus round - What about After Effects and Premeire Pro?
    Well both of those apps Use a timeline instead of frames. Which makes them much simpler and more powerful for animations, since that is what they are dedicated to do.
    It is as simple as open the gif file, edit it, save it, done.
    I won't go into how the timeline works as that would require a long , long post. But once you understand it, it is much quicker and can do way more feature wise.
    One last thing, play around with it and see what it can do before commiting time to creating or editing a gif. It goes much easier once you get the hang of it.
    If you have any questions, issues, etc. just post away...
    Well, I got to go, I hope this helps.

  • How can I place report on dashboard with parameters

    Hi all,
    If i want to place a report with 2 parameters on the dashboard how can I do it ???
    Regards

    Have a look here in the OBIEE tutorial:
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    regards John
    http://obiee101.blogspot.com/

  • Can I use an animated GIF with Keynote 6.0?

    I'd like to loop the animation of an animated GIF in my keynote presentation.
    Used to be possible with the Quicktime inspector...
    Is this possible in Keynote 6.0 ?
    Cheers, Juergen

    Easy work-around is to rename your file with .mov extention (I used myanimatedimg.gif.mov), drag the file from finder and Keynote now thinks its a movie. You now have the movie controls on the right which all work perfectly for your annimated gif!

  • How can I create transparent animated  text with Motion and Final Cut Pro?

    Hi all,
    I am trying to replicate an effect that a previous video editor did in a project, but I can't contact them.
    They made animated text in Live Type, and saved it as a QT movie. When this text is placed over existing video in the FCP project, the text is "transparent", basically it acts like text created in FCP (You can see the background image behind the text, like through the middle of the letter "o").
    I have made some animated text in Motion, but when I save it as a QT movie, and bring it into FCP, the whole 1280x720 screen is covered by this movie, and I have to crop it so it does not cover the background image. It is all black except for the text. And of course the text is not on a transparent layer. Any ideas how I can create this effect with animated text? I've tried messing with transparency and overlay settings, nothing seems to work.
    Running latest version of Final Cut Studio...
    Thanks
    Dave

    Just bring the Motion (.motn) project into FCP and lay it over your clip.
    The QT you're exporting has to carry the alpha channel (animation codec, million+ colors), but don't waste your time/disk space with that. Just bring the motion project into FCP.
    Patrick

  • Can I create an animated gif with ps touch?

    I've dome this on a desktop but can't see if ps touch has the same functionality. Can anyone enlighten me?

    No, sorry. (You can, of course, create the frames for it...but that would require separate projects. It sounds kind of cumbersome but as long as you put the projects in a folder you can simply export all at once.)

  • How combine a jpeg image & animated gif image & save  it as GIF ?

    i have an jpeg image, & also aminated gif image, how do i place the animated gif image over (in the center of the image) a jpeg image & save it as gif file ??

    First thing you need to do is stop thinking in terms of file formats once the files are in photoshop they are all the same. The exception being vector vs raster. But in this instance the process is rteally the same so 6 on one hand a half a dozen on the other. Or as some would say Tomatoe, tomahtoe(mispelled on purpose).
    The jpeg I would assume is the background image and the gif image is the fore ground object. Open the jpeg, and then place the gif file. As long as the fore ground object has transparency, your job is pretty much done. If not, then it will be up to you to mask what you want to keep vs what you don't and apply that selection to the foregrounds layer as a mask.
    Google the net or skim the users manual for the keywords - mask, selections, quickmask, pen tool, paths. Each of these can in one way or another take care of your issue.
    It would be worth your time to also go through the numerous videos about photoshop and see how its done.
    Either go to adobe tv,
    Itunes podcasts
    or one of the following web sites:
    http://kelbytv.com/
    http://creativesuitepodcast.com/

  • Animated gifs on jlabel

    hi
    i am new to java and got a question.
    how do i place a animated gif on a jlabel correct?
    i done it so far with 'seticon' and the gif is visible, but not animated.
    what do i have to do?

    Use setImageObserver()
    ImageIcon myicon = new ImageIcon (...);
    JLabel mylabel = new JLabel (myicon);
    myicon.setImageObserver (mylabel);
    Okay, thank you very much.
    Now, the Image is animated after i maximize and reset my application.

  • Can someone help me with a very basic guide to animated gif with elements 11?

    Hi
    I bought Adobe elements 11 and have been trying to do a very basic animated gif with it.I came acroos some instructions about layering,etc but still cannot get it to work. All I want to do is add two of my school photos together so that one suddenly vanishes and the one appears.I am planning to put this on my blog.
    The animation I want is the day time picture of teh school magically vanish and the night time picture appear.Can it be done with elements11(I wouldn't mind if someone can even do it for me so that I could deconstruct it later!).I have attached the two photos.Please remember ,my knowledge of phtoshop is abysmal and very very basic.My apologies for that.hence I might be need to be told like a 10-year old!
    Please help as I need this fast! Karen.

    It’s not possible to fade between gif images but you could sandwich two layers with a black fill layer between them as I have done in this example.
    Then use the menu:
    File >> Save For Web
    Choose gif as the file type, select animate, and set your timing in seconds with continuous loop if required.
    Then Save.
    PS the images are different sizes so I had to re-size the daylight image to make it the same as the night image.
    Click to view

  • How can I combine multiple animations. (Play another animation after one has finished with a click?)

    How can I combine multiple animations. (Play another animation after one has finished with a click?) Like a slideshow but with animations. any ideas?

    You can do this by calling up the different edge Animate composition html pages using buttons and an iframe:
    To get a general idea, put this in the body of an html page and insert your own URLs where indicated
    <iframe id="iframeID" src="yourFirstURL" width="640" height="480">
    <p>Your browser does not support iframes.</p>
    </iframe>
    <button onclick='loadIframe("iframeID", "firstAnimURL")'>First Animation</button>
    <button onclick='loadIframe("iframeID", "secondAnimURL")'>Second Animation</button>
    <button onclick='loadIframe("iframeID", "thirdAnimURL")'>Third Animation</button>
    <script>
    function loadIframe(iframeID,url) {
    //alert("Hello");
       document.getElementById("iframeID").src = url;
    </script>
    Peter Small

  • How do you make an animated gif activate when a corresponding button is selected?

    I am working on a DVD menu using Photoshop and Encore. I currently have a map as a background and a gif animation of a radar ping. The radar ping has transparent parts so that it shows up in front of the map it will be placed on. I want the radar ping gif to animate when it is selected, but I cannot make it animate. When I tried to place the animated gif into the DVD, it became a static image with 50 layers, instead of an animation with 50 frames. When I replaced the gif with a static image, it still caused problems because when I made it into one of the button's highlights, the button overlapped the other buttons, causing those to highlight as well.
    Summary: Ideally, I want to add various gifs that will activate when the corresponding menu/chapter buttons are selected.
    Failing that, I would be happy just to know how to add an animated gif to my DVD menu background.

    You have two problems. The first is that an animated gif has no special status in DVD authoring. It is an anmiation. How do you get animations into a DVD project? You import them as movies - either as assets that get puit on timelines, or assets that become part of a motion background.
    Yes, Encore has a special feature of making animated thumbnails, but this is  just a fancy way of putting thumbnail-sized bits of video into a video background of a menu.
    I think you resolve the animated gif issue if you convert it to a video format Encore understands.
    http://helpx.adobe.com/encore/using/importing-assets.html#supported_file_formats_for_impor t
    The second issue is that you want a button highlight to be an animation. Also not part of the DVD spec or what Encore will do. You can fake this, by having a button autoactivate and to go to a different menu that has the animation for that button as part of the background.  You create as many menus as you have buttons with that characteristic.
    Note that a mouseover won't autoactivate, so this doesn't work on a  computer the way solme users would like.
    Scripting is a way some authoring applications can handle such things, but Encore does not provide scripting.

  • Creating a animated gif with transitions..

    Hello all,
    I am creating a animated gif with a set number of pics. They will change every couple of seconds transitioning from dark to light very quickly until you see each pic, from picture to picture..
    Kind of like something you would see in flicker....
    I have not used flash in awhile, so was wondering how to go about this..
    Is this a pretty easy thing to do in flash (not to time intensive)?
    Is there a particular tool for this?
    SInce there is no movement here is this something that I can also create in Dreamweaver?
    I would like to place this on a web page I am working on, and I am thinking I could just place it where it needs to go in Fireworks before i bring it into dreamweaver...
    Thanks in advance!

    You can create an animated gif using Flash, but it will be much simpler in Photoshop or Fireworks. See this technote:
    http://kb2.adobe.com/cps/155/tn_15568.html for the Fireworks solution.

  • Animated Gif with large base image & small animated part.

    Hello guys
    I'm not really sure how to explain that, due to my limited English comprehansion. I will try with images.
    I can easily create animated gif out of multiple layers, given each layer is identical, with small changes accuring over time.
    But I yet to figure out an animated gif, that uses one large image for the base, and only small part of it is animated.
    I always get the animated part working, without the large base applying across all the frames. All it does, is flashes once
    the frame is reached and then moves on to being transparent, showing only the small animated part.
    For example, this is a GIF made with Galaxy S4, of my friend playing with his phone, imported into PS CS6. On the Galaxy,
    after I record the GIF, I can use my finder to touch, mask and freez parts I don't want to move, and leave only small, animated bit.
    When I import it to PS, it shows one layer with full image, and bunch of frames with the animation part only.
    http://i.imgur.com/UAiopQA.jpg
    http://i.imgur.com/7XOGGV6.jpg
    Problem is, once the image is open with PS, I'm not able to export it to keep it working in the same manner. Given the Samsung's
    gifs are 8 to 10mb, it's hard to edit it, to make it more size friendly.
    The gif clearly works the way I describe, so there is a setting or method I don't know about.
    If PS is not best tool for editing GIF, what other apps would you recommand I use for it?
    Thank you for the taking the time to read
    best regards
    Monica

    This has been an ongoing issue for me since I switched from Powerpoint to Keynote. Most of the animated gifs with transparent backgrounds that I used with Powerpoint are no longer transparent in Keynote. You may want to search for those earlier threads on this topic...
    To summarize: I've had to open up my animated gifs in After Effects and use the Color Key effect to restore transparency, with mixed success.
    Good luck!

  • Using animated gifs with transparent background.

    Hi guys,
    Keynotes 6.2.
    I have been onto apple support with this problem.
    I add a transparent animated gif to my project.
    It show as a movie correctly in the presentation but when exported as quicktime or HTML the movies fail.
    We eventually found out that quicktime does not support animated gifs. ( support.apple.com/kb/ht3775 )
    So I exported the animation onto a folder with all the frames separately and brought them into final cut pro.
    I then followed these tutorials on how to export with transparent background. ( http://provideocoalition.com/mspencer/video/fcp-x-and-alpha-channels and http://www.larryjordan.biz/fcp-export-transparency ).
    I now have a quicktime movie that if I bring back into Final Cut Pro it has a transparent background.
    However when I bring into keynotes it still has a black background. (presumably keynotes does not recognise the  Apple Prores 444).
    Any ideas how I can achieve what I need. ?
    I am using a program called crazytalk animator and can output with transparent background. Animated Gif or a series of image stills BMP, JPEG, TGA or PNG.
    Cheers
    SteveW

    This has been an ongoing issue for me since I switched from Powerpoint to Keynote. Most of the animated gifs with transparent backgrounds that I used with Powerpoint are no longer transparent in Keynote. You may want to search for those earlier threads on this topic...
    To summarize: I've had to open up my animated gifs in After Effects and use the Color Key effect to restore transparency, with mixed success.
    Good luck!

  • Playing animated GIFs with NetBeans

    Well for our Computer Science class we have to make a game.
    For our title screen we wanted an animated GIF to play.
    I made the animated GIF with Gimp and I am using the NetBeans IDE (I am using the GUI Builder)
    I have tried using the image as a JLabel but it didn't work.
    I just need it to play the GIF.
    Thanks.

    Ok sorry I should have posted some code.
    Also I got it to work. But I now have a new question.
    How do you loop the animation?
    Is it possible to layer a JButton on top of the GIF?
    And also is it possible to make this part of the code relative?
    Like can you make it where it looks through the entire file without a specific path.
    AndroidGIF.setIcon(new ImageIcon("C:\\Users\\***********\\Desktop\\android2.gif"));Here is the rest of my code.
    import javax.swing.*;
    class GIFTest extends JFrame
        JLabel AndroidGIF = new JLabel();
        public GIFTest()
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            AndroidGIF.setIcon(new ImageIcon("C:\\Users\\********\\Desktop\\android2.gif"));
            GroupLayout layout = new GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(27, 27, 27)
                    .addComponent(AndroidGIF)
                    .addContainerGap(41, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(32, 32, 32)
                    .addComponent(AndroidGIF)
                    .addContainerGap(46, Short.MAX_VALUE))
            pack();
             public static void main(String args[])
                new GIFTest().setVisible(true);
    }Note that I bleeped out the name of the computer due to privacy.

Maybe you are looking for

  • How to go to previous page in windows phone 8 when back button is pressed

    I have a home page or landing page in my windows phone c# based app where user enters login details and upon successful login user is redirected to page2 . Here the user will see a list box with few items . Upon selecting an item from this list box a

  • App store updates not working in ios7 on 5s

    When I go to updates in the App Store app, and press the update button, it is now opening the app rather than updating it.  If I search for the app and click the icon it installs/updates it.

  • Private Interconnect: Should any nodes other than RAC nodes have one?

    The contractors that set up our four-node production 10g RAC (and a standalone development server) also assigned private interconnect addresses to 2 Apache/ApEx servers and a standalone development database server. There are service names in the tnsn

  • Incorrect subpixel rendering iin FF 19.0.2

    In many situations FF does not correctly display subpixel rendering. It appears as if the color one one side of a leg is assigned also assigned to the adjacent pixel of the leg. For a font leg only one pixel wide, there is no black portion of the leg

  • Import Purchase - Customs office vendor in PO

    Dear Gurus, In Import Purchase order, where shall we have to maintain Customs house vendor number ? my understanding: In import purchase the flow is : PO - IV (customs house) - GR - IV ( for main vendor) before posting GR for Materials, we have to po