Toolkit.createCustomCursor(...) blocks when provided with an animated GIF

Hi everyone:
Here is a code snippet from an application of mine:
// Loading an image: works fine. duke.gif is an animated Duke icon found in the source code version of J2SDK 1.3.1.
ImageIcon imageIcon = new ImageIcon("duke.gif");
// Conversion into an image: works fine too. I checked its proper termination with a MediaTracker, which I removed after determining that getImage() does not block at all.
Image image = imageIcon.getImage();
// This method blocks forever!
Cursor myCursor = Toolkit.getDefaultToolkit.createCustomCursor(image, new Point(0, 0), "Duke");After testing with a few other GIF images, I could determine that this blocking problem seems to occur only with animated GIF images. Are animated GIFs supported as cursor images at all? Also, what is the best method to use the Toolkit.getBestCursorSize(...) to properly size the loaded image for use as a cursor icon?
Thanks in advance for helping...
Jean-Fran�ois Morin

I think the problem may be that your using an animated gif. If you read the doc on the Curson class it says that Cursor is a bitmap representation of the mouse cursor. Bitmaps do not generally support animation. Also it is likely the createCustomCursor method is waiting for a call to ImageConsumer.imageComplete(). I am not sure, but if the GIF animation loops this function may never get called. This could cause your hangup. I would suggest trying a non-animated GIFf produced from the same program to ensure that your paint program is producing compliant GIFs. If that works I would assume the problem is that Cursor does not support animation at this time. I could be wrong about that, but there is nothing in the documentation to indate that it would.
NoOneLeft

Similar Messages

  • I have a problem with an animated gif.

    I have a problem with an animated gif. When I use text in the
    flash file the gifs text is all messed up. The text was white in
    the flash file but in the gif all the white is splodged all over
    where the text was supposed to be and is totally inelegable.

    OK I found a way around this problem... I delete all the text
    that I had created within Flash and recreated it in Photoshop. I
    rasterized the type in Photoshop the I saved the files as PSD. I
    then went in to Flash and imported them to the library. I place the
    images of the text where they had originally been in my Flash file.
    When I published it as an animated GIF the file was perfect... No
    Black or White blocks...
    SO you might try that... I'm not sure what Flash changed, but
    I used to create text for animiated gif before without any
    problems...

  • Problem with importing animated gifs

    Hi i'm trying to use an animated gif in my project. Basically my after effects project is just a countdown from 10 to 0 while the animated gif spins continuously during the countdown. My problem is when I use the animated gif the background it is no longer transparent and the background is instead white. How do I make it transparent again in after effects? Next the animated gif is about a 2 second loop, it won't let me drag the bars to extend the time to 10 seconds. How do I loop it for 10 seconds?
    These aren't musts, but if anyone could, help would be greatly appreciated:
    1) For the text effect 'numbers' (which I used for the countdown effect) it always renders really shaky and bouncy when i preview it. Is that normal?
    2) It has the time as 00:00:00:00 (type: timecode 30). How do I make so it only shows 00:00 ?
    Any help would be awesome.
    Thank you

    My problem is when I use the animated gif the background it is no longer transparent and the background is instead white.
    Correct. As a conmpositing program, AE requires proper Alpah transparency, not palette-based transparency. File must be converted to an image sequence with Alpha channel.
    Next the animated gif is about a 2 second loop, it won't let me drag the bars to extend the time to 10 seconds. How do I loop it for 10 seconds?
    Footage interpretation --> Loops
    1) For the text effect 'numbers' (which I used for the countdown effect) it always renders really shaky and bouncy when i preview it. Is that normal?
    Yes, it's normal if you are using a non-monospaced font. Use a suitable font.
    2) It has the time as 00:00:00:00 (type: timecode 30). How do I make so it only shows 00:00 ?
    Use multiple layers and effects and mask them out.
    Mylenium

  • Problem with text when publishing as an animated .Gif

    I am using Flash CS4 to create a simple 300px250x animated web banner.
    Everything works fine when I am in flash and when I export my file as a .swf,
    but when I export my movie as an animated .gif, the text becomes a solid box of color...
    any ideas why?
    I created the text in flash, then converted it to a symbol...
    the animation is a simple scroll and fade in.
    Could it be because the text is too small or is there something else?
    Really hoping someone can give me some insite into this, thanks!

    Hi,
    Try exporting your file with the following settings to get a high quality GIF
    Dimensions   : Match movie
    Playback       : Animated
                        : Loop continuously
    Options         : Optimize colors
                        : Smooth
    Transparent   : Opaque
    Dither           : None
    Palette Type : Adaptive
    Max colors   : 99999
    Thanks!
    ps: please mark this post as Answered if this of any help to you

  • How do I open with an animated gif and then go to home page?

    I apologize for the newbie question, but I would like to have
    an animated gif intro to a web page. Is it possible to have the gif
    play and then go to the index file? Or do I need to insert the gif
    into an index file and save the home page as something different?
    If so, how do I get it to go to the home page automatically?
    Any help is appreciated.

    >I apologize for the newbie question, but I would like to
    have an animated
    >gif
    > intro to a web page.
    This is called a 'splash page'. To do it, you'll make your
    default home page
    (index.html/default.html/whatever) this splash page, then
    you'll have then
    sent to whatever other page you want it to go to...either via
    a HREF or a
    META REFRESH tag.
    You can't actually time the refresh to coincide with the gif
    finishing it's
    animation, though. For that, you'd have to use Flash
    animation.
    But keep in mind that this technique is pretty much frowned
    upon these days.
    It's an unecessary barrier betwen your users and your content
    and is seen by
    many as a rather dated/amateur technique.
    -Darrel

  • Flash CS4 crashes when publishing .SWF to animated .gifs

    I know, I know ... I need to update. Tough crap, it's paid for. Every time I go to publish a .swf file to an animated .gif, I crash. Running CS4 on Windows 7, 64-bit. ANY help would be appreciated! This is a RUSH scenario on a time-sensitive job. Thx!

    Hi Cratig84383,
    Can you verify if any of your library assets is corrupted?
    Thanks,
    Preran

  • DataTable: Show Row When Provided With An Empty List

    Hi all,
    I've just started looking at JSF and to start I'm trying to throw together a little webmail application. At the moment I have the below simple DataTable. All works fine but I am wondering about one thing. When the user has no emails in their inbox, instead of just showing an empty table I would like to have a row that spans the total number of columns alerting the user that they have no email. Can anyone suggest an easy way to do this?
    I can see that MyFaces' DataTable has a "renderIfBlank" attribute which I could use to hide the table and then create create a new blank table but this will mean duplicating a chunk of code.
    So here's my code. As I touched on earlier - I'm using MyFaces so that's where the tags with a t prefix are from.
    <t:dataTable id="yourmessages" rows="20"
              var="message" value="#{userBean.folder.messages}"
              rowIndexVar="rowIndex" width="700px">
         <t:column width="30%">
              <f:facet name="header">
                   <f:verbatim>                    
                        From
                   </f:verbatim>
              </f:facet>
              <t:outputText value="#{message.from}" />
         </t:column>
         <t:column width="40%">
              <f:facet name="header">
                   <f:verbatim>                    
                        Subject
                   </f:verbatim>
              </f:facet>
              <t:outputText value="#{message.subject}" />
         </t:column>
         <t:column width="15%">
              <f:facet name="header">
                   <f:verbatim>                    
                        Date
                   </f:verbatim>
              </f:facet>
              <t:outputText value="#{message.sentDate}" />
         </t:column>
         <t:column width="15%">
              <f:facet name="header">
                   <f:verbatim>                    
                        Size
                   </f:verbatim>
              </f:facet>
              <t:outputText value="#{message.size}" />
         </t:column>
    </t:dataTable>

    You can't do. But I don't see duplicating if you do it as follows:
    <h:dataTable rendered="#{!empty myBean.dataList}" />
    <h:outputText rendered="#{empty myBean.dataList}" value="No data!" />

  • Keynote crash when recording with animated gif

    I'm running Keynote 6.5 on a MBP with Yosemite. While trying to record a voiceover on a Keynote presentation, the program continually crashes whenever I get to a slide with an animated gif. The gif won't play, but I CANNOT exit the program. The interface appears to be responsive, but in fact nothing works. I can call up the slide navigator, but unable to switch slides. Buttons appear to click but nothing happens. I cannot bring up the Activity Monitor. Command Tab does nothing. I have no choice but to restart the computer.
    Any suggestions?

    Yes animated GIF's cause problems in record slideshow;   Keynote is perpetually running an animation and won't advance to the next slide.
    I record the voiceover outwith Keynote as separate clips, and place the appropriate clip on each slide, when I do this Keynote plays correctly.

  • How to export animated gif with transparent background and glow effect?

    I've been having issues lately with creating animated gifs in flash. I finally figured out a way to export a gif with a transparent background but I'm now having an issue with it again because I'm using a glow effect. When the gif is exported the glow effect changes into a very poor quality and becomes less of a glow and more like a solid color. I've even exported a png sequence from flash and put it into photoshop then created a gif from there but I'm still having the same issue. Is there anyway I can properly export this in gif form so the quality is the same as when I test it in flash?
    I've provided an image of what my issue looks like and the settings (I've messed around with the settings and this is the best I can come up with) . This is in photoshop but the result is similar in flash. The left one is what it originally looks like and the right is what it will look like after exporting. As you can see as I said before the glow changes into more of a solid color kind of like a border. Any help would be greatly appreciated, thanks in advance!

    A GIF is limited to 256 colors while a glow effect likely wants to tie up thousands (let's just say 'lots') of variations of tone.

  • Text messages with animated .gif files attachment

     I recieved a text the other day with an animated gif file attached. I believe it was sent as a zip file. Anyway I tried to open it and all I got was a gray screen with an icon . No animation.. The second one I recieved was from a buddy. I watched and listened to it on his Droid 1. I had him send it to my phone text came through fine when I went to load and play the gif file it .had sound but no animation, just the gray screen again. I know the attachment is a zip file as I sent it to my email and opened it on my computer. Any thoughts maybe there's a setting I'm not finding? I'm using whatver text mesage program thats standard on the DX.
    Thanks
    MTY55.

    Sounds like the issue you are having is that the files are zipped, MMS should be zipped because it has to access the files to display it.. I send and recieve anifated gif files and they play fine but also keep in mind that for some reason the stock email client does not play all files at same time, if there is a audio and photo, it will play audio and then the photo..

  • Quality problem with animated gif through flash

    i got a problem with making animated gif through flash.
    on html/swf publication it looks clear.
    but the weird thing is through gif publication, it wouldn't show. and exporting it as a movie as gif cause visual defect when put up on web.
    it looks better when you open it in a browser.
    this is how it looks for a profile gif in thumbnail mode. blocky and unclear.
    how do you get it to look good both in thumbnail mode and in browser mode. i seen other that have a clear gif in thumbnail mode.  are my setting wrong for flash? or should i just do gif in photshop instead. i heard rumors flash don't do gif very well.

    Change your gif export setting under publish...
              Dimensions         : Match movie
              Playback             : Animated
                                        : Loop continuously
              Options               : Optimize colors
                                        : Smooth
              Transparent         : Opaque
              Dither                 : None
              Palette Type       : Adaptive
              Max colors         : 99999

  • Animated gif is tiling when opened on iPad email

    I am trying to design a simple email blast with an animated gif which i have been doing so for 5 years. today, i designed a new email blast for my client and it works perfectly on all my email accounts including mac mail and thunderbird. however, when i view the same email on my ipad3 i find the art work is tiling both on the x and y axis and the animation no longer works. the html form  i used for this is:
    <html>
    <head>
    <title>www.drotardesign.com </title>
    </head>
    <body>
    <table width="500" border="0" align="center" cellpadding="0"
    cellspacing="10">
    <style>
    a:link { color:#F60; text-decoration: none;}
    a:visited { color:#900;}
    a:hover { color:#F33;}
    </style>
      <tr>
        <td width="400"><div align="center"><font color="black" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong> drotardesign is proud to announce the release of his newest website for Director John Behring
    at</strong></font><strong><font color=”red” size="5" face="Verdana, Arial, Helvetica, sans-serif" ><br>
            <a href="http://www.johnbehring.tv">www.johnbehring.tv </a></font></strong></div></td>
      </tr>
    </table>
    <table width="600" height="600" border="0" align="center" cellpadding="0" cellspacing="0" background="http://www.johnbehring.tv/email/hero.gif">
      <tr>
        <td> </td>
      </tr>
    </table>
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="10">
      <tr>
        <td width="500"><div align="center"><font color="#000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>drotardesign.com specializes in HTML5 | jQuery | Ajax | PhP | Flash | Design & Programming for Smart Phones, Tablets & the Web. Please visit his definitive portfolio @ </strong></font><strong><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"><br>      
    <a href="http://www.drotardesign.com">www. drotardesign.com </a></font></strong></div></td>
      </tr>
    </table>
    </body>
    </html>

    Hi Tom
    The email language is in English, and it is the only email source that seems to suffer from this issue.  Its distributed weekly but I only noticed the problem a few months back - prior to that it was fine.
    Ordinarily I wouldn't be too hung up about it as I can always read on another device or even log into my gmail from the safari browser (where it renders perfectly) - but given it displays without issue on the ipad, I was just curious to see if there was some config issue on the phone.
    Have attached a screenshot to see if it helps.  You'll see that the mail begins out normally in English and then deteriorates after a few sentences, possibly initially starting with the first use of the € Euro symbol.
    Rgds
    SPK

  • Can't open animated GIF, even with secret trick (psd cs3)

    Hi
    I know a lot of people have had trouble with opening animated .gifs in photoshop cs3. I had that problem until I learned the little "trick" you could do (type *.* in "import video frames to layers") and then simply open the gif. This has worked one my computer for some time, but then all of a sudden it stopped working. I thought it was odd and then I formatted my computer and installed a few windows updates and then installed adobe photoshop cs3 and then quicktime. But it still won't open GIF as it used to do. And it's very odd, as my laptop can do it (and it has just been newly reformatted too). I know Adobe's own solution, which is to use fireworks, but I find it to be a crappy program, so I'm not going to use that. I want to be able to import GIFs into photoshop as I used to :/
    Hope someone has encountered this problem too. I know a lot of people had been able to use the trick, but I havn't been able to find anyone who has the crash problem.
    Know of this?

    sounds like you might have a conflict with QuickTime, seeing as the error is in MODNAME quicktime.qts
    first, try resetting the PS prefs. hold CTRL+ALT+SHIFT on launch and then click Yes when prompted. if you have any preferences that you would prefer not to reset, close PS, move the preference files, then launch PS to create new ones. if it's not the problem, you can put them back later. Use the info in kb401600 if you don't know where the preference files are.
    http://www.adobe.com/go/kb401600
    if resetting the prefs doesn't fix it, make sure you have the latest version of QuickTime installed (7.4.5) and that it can launch without problems. if you have problems using QT, let us know or post on Apple discussions to find a solution.
    if you do have the latest version and the problem recently started, it may be that Apple broke something that PS uses in a recent update. uninstall the version you have, delete /program files/quicktime/ folder if it still exists, reboot, download an older version (apple has archived installers; search for "download quicktime 7.3.1 windows" OR "download quicktime 7.1.6 windows" on google to find it), then install it and reboot before trying PS.

  • Why is picture blinking when pasting object to an animated gif???

    I am working with animation and when finished my pic is blinking once saved?  I am working with an animated gif and opening file in the video frames ..then I am trying to paste a dog with trasparant background.  I have tried merging the top 2 layers, all the different locking options and saving each time...no matter what I do when viewing my pic the background ( animated pic) is blinking)?....I have CS3 extended.  Can anyone offer advise?

    When I click on the picture I see the animation.
    You have a frame with only the dog showing.  Go through your frames, selecting them one by one, and look at the layer visibitlity indicators.  One of them is likely showing only the dog.  Alternately, if you don't need that frame you can just delete it entirely, then Save For Web & Devices again.
    Either that or a lightning storm is coming. 
    -Noel

  • Safari 4: Problems with animated GIF

    Hi,
    since I've updated to Mac OS X 10.6 my Safari 4.0.3 has Problems with some animated GIF.
    Some of these smileys look strange.
    OS: Mac OS X 10.6.1
    Mac: iMac (24-inch Early 2008)

    HI,
    Apparently you aren't alone.
    http://discussions.apple.com/thread.jspa?messageID=10059219&#10059219
    Carolyn

Maybe you are looking for

  • Deploy Adapter-Module PI 7.1 with NWDS 7.1 to server?

    Hey, i am developed a adapter-module for PI 7.0 now i am upgrading the module to PI 7.1. I got the NWDS, all libs and build all Projects like it was described in a SAP Help skript. I created a new Project, added the EJB module, adjusted the decriptor

  • How can I delete a tv show from the icloud?

    I don't mean hide them, I want to completely remove them. I saw that you need icloud.com and I was wondering if there was another way because my iPod is too old to be connected to icloud.com so I can't use that

  • HP PSC 1410 AII IN ONE

    I HAVE BEEN HAVING PROBLEM OF GETTING VERY LIGHT  SCANS WITH MY 1410 ALL IN ONE PRINTER FRONT LEFT CORNER SCANS ARE OVER EXPOSED(LIGHT/DIM) AND THE REST OF THE SCAN PAGE IS SATISFACTORY. HAVE ALSO OBSERVED A TRANSPARENT PATCH ON SCANNING BED WHICH OT

  • Problem in Creating and Scheduling an ODI Scenario

    Hi, while Creating and Scheduling an ODI Scenario with the help of the following link: http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/10g/10135/creating_scheduling_scenario/creating_scheduling_scenario.htm#t2 Oracle DI Agent is not

  • Facing Issue with Photoshop CS5.1

    Hi, I am facing problem while using Save / Save As / Save for web options in my Photoshop. On clicking Save / Save As commands, my photoshop gets closed abruptly and I am losing all data. If I choose Save for Web option, the file Save dialog box appe