ImageObserver's imageUpdate does not seem to be called
Hi, I'm new to using BufferedImages and Graphics2D, and I have a problem with the ImageObserver.
To my knowledge, one of the ways to draw an animated gif is as such:
g.drawImage( bufferedimage, x, y, imageobserver );
I'm using a JPanel as the image observer, however it does not seem to animate. The image itself just shows the first frame. Was I mistaken or is imageUpdate supposed to be called automatically/implicitly? It doesn't seem to call.
Thanks.
I don't think that any of the drawing methods in Java will animate gifs. Everything I've ever read says it will do what you are seeing, that is the first frame is displayed but not subsequent ones. You'll need to read each frame from the gif file and animate them yourself.
Edit:
nevermind, I didn't realize there actually was some support for animating gifs. Here's the first hit from google on your problem:
http://www.permadi.com/tutorial/javaImgObserverAndAnimGif/index.html
Edited by: jboeing on Feb 27, 2008 7:54 AM
Similar Messages
-
I have a late 2012 iMac with an I5 precessor running OSX 10.8.5 and a 1tb internal hard drive. I keep losing access to the internal hard drive/startup disk.
I can reboot and everything operates as normal for a few minutes or hours but then I lose all access again to anything on the hard drive. The computer is still up and running but no files can be accessed and certain websites cannot be acessed even though internet access appears to be normal. Disk utility can only find permission errors related to iTunes which can be repaired only to come back at the next scan (I would not think permission errors would have anything to do with the hard drive crashing). It does not seem to matter what program I am using at the time access is lost and it can lose access sometimes right after reboot when no program is running.You will need to boot into the Recovery Volume (command - R on a restart or hold down the option/alt key during restart and select it) to run Disk Utility/Disk Repair.
-
My ipod nano 3rd generation, when connected by usb, does not show up in itunes, does not show up on my computer, does not seem to charge by the wall charger. It just has a black screen. Any ideas for me?
I've run diagnostics. Can't find device. I've tried resetting. The toggle has been turned on and off.Cable works fine on my other iPod. Reset by pressing menu and center button together for 6-10 seconds. Left it to charge for many hours. Started acting up while running. Suddenly the music stopped playing but my Nike + was still working for the rest of my run. Took it straight it home and plugged it in to the wall to recharge since the battery was fairly low. Looked like it recharged ok but then screen went blank and now does it not show up on iTunes, does not seem to recharge by the wall charger (apple wall charger plugged into a surge protector in India). I have turned the hold switch off and on many times.
Sounds like a repair issue, which is not easy to do in India :( -
When i click on general settings, the software update does not seem to come up? It wont let me download any apps.
I Want to download i0s 5
i have ipod touch 3rd genYou need to connect your iPod to iTunes on a computer and update from there.
Before updating, I recommend that you create a backup first, using : http://support.apple.com/kb/ht1766
Please note that iPod 3d generation only goes up to iOS 5.1.1
To update the iPod, use: http://support.apple.com/kb/ht4623
scroll down to the part that's about updating with iTunes.
Good luck
Stijn
Message was edited by: jesterwylde -
I had installed FF 4.0.1 and have been using it for a while. I am running Win XP Pro, SP2. Last night a messge came up informing me that FF 4.1 was now available and that it would be advisable to download and install it. I did this and everything seemed to work fine but when I look at the 'About Firefox' info under 'Help' it still tells me that I am running 4.0.1. Everything still seems to be functioning well but this disturbs me as it does not seem to have been a FF message. Can you please tell me if such a message was sent out, and if so, why, seeing as the version does not seem to have changed?
To ensure that no malicious software has been installed, try running several malware scanners. It is best to run several as each will pick up things that the others miss. Some scanners you can try are:
* Malwarebytes - http://www.malwarebytes.org/mbam.php
* SuperAntiSpyware - http://www.superantispyware.com
* Ad-Aware - http://www.lavasoft.com/products/ad_aware_free.php
* Windows Defender - http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
* Spybot S&D - http://www.safer-networking.org/en/home/index.html -
Can anyone help I have just taken an iPhone4s but can't get it to sync with my Outlook calender I have downloaded to my PC the iCloud software but that does not seem to have helped at all?
Thanks Bazzer50Do you see your Outlook calendar on the iCloud website?
Do you see your iCloud calendar on your iPhone?
This Apple article is a good place to start -> iCloud: Troubleshooting iCloud Calendar -
Dynamic hyperlink does not seem to work
Hi,
It looks like this same issue came up before in <
Dynamic hyperlink in Word 2003 but it does not appear that anyone ever responded.
My customer has created a dynamic hyperlink using {VM_URL} but when the template saves if you mouse over the hyperlink, you see a reference to the current location example:
file:///E:\temp\%7bVM_URL%7d
The xml data template looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<ContractDetails>
<kid>238335</kid><usr>[email protected]</usr>
<LIST_HDR>
<HDR>
<USER_PWD>4</USER_PWD>
<USER_SSO>[email protected]</USER_SSO>
<VM_URL>http://ora-apps-phnx-1.vmware.com:8000/oa_servlets/oracle.apps.fnd.sso.AppsLogin?requestUrl=APPSHOMEPAGE&cancelUrl=http%3A%2F%2Fora-apps-phnx-1.vmware.com%3A8000%2Foa_servlets%2Foracle.apps.fnd.sso.AppsLogin</VM_URL>
The hyperlink in the pdf then becomes the original path to the document:
E:\tmp
I have found a couple of issues in WebIV, one was a position loop problem and another was an absolute xpath issue, but this does not seem to fit either. I played a little with the link and url setting, but no luck.
Tried in 5.6.3 and Word 2k2
Any help would be appreciated.
Thank You,
DaleI am facing the same problem,
Please can anyone give pointers to this?
Regards,
Amit Deshpande -
I have a Mac Book Pro with 10.6.8 and want to back up my files using a flash drive. It says I did it but when I tried to check on my other Mac - an I Mac with 10.5.8, thedata does not seem to be there. I cant see photos, etc.. It shows the backup as a file and shows various system info. but there are no photos or other files shown.
Thanks for any advise.
MikeA PowerPC Mac, if that's what it is, won't be able to see an Intel Mac's formatted data. Also ExFat formatting is not supported by 10.6.3 or earlier. I would try viewing the backup on another Intel Mac with at least 10.6.4. If it isn't there, then the backup never really took place. I much profer a hard drive with Carbon Copy Cloner.
-
My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.
Hi ...
Checked to see how much free space there is on the startup disk lately?
Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
A Safe Mode boot takes longer then a normal boot so be patient.
Once you see the Desktop, click the Apple menu icon top left corner of the screen.
From the drop down menu click Restart.
See if that makes a difference ... -
Blog summary does not seem to update online
I've just updated a blog I've created for a musician friend of mine; it's been done on iweb 3.0.2 & published via ftp using godaddy: http://lauramoodymusic.com/lmm/news/news.html
However, the main blog summary which is correct on iweb, and the version published to a local folder, is not updating online. The new blogs are visible if you go to the archive, and by clicking on the RSS feed, but not from this front page... I've tried to republish all the relevant pages again, manually, but this doesn't seem to have worked either.
Help urgently needed.
thank you.+Noticing how disorganised the iTunes Lib is, I spent a lot of time today adding and editing mp3 tag data so that iTunes would look more logical.+
+However it does not seem to pull in or update to what I have on my hard drive!+
iTunes does not read the tags until you select/play a track. It stores the tag information in its library file and this will not reflect changes made to tags with an external editor until iTunes looks at the track.
You can force iTunes to re-read all the tags by selecting all the tracks in your library, right clicking in the selection and choosing get info.
It is essential that you do nothing except click "OK" as any change you make would be applied to every track in your library.
Depending on the size of your library iTunes may take a while to complete the task.
It is always advisable to have your library backed up in case you make a mistake. -
My iPhoto library has suddenly disappeared from my computer.
When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist anymore. I did not have time machine set up, so there is no back up. Is there any way i can retrieve my library?
Here is a picture of what appears when i click on iPhoto:In terms of searching i have searched for photos on my finder. However, none of the photos that appear are from my iPhoto Library.
Search with FindAnyFile. You can download it here: http://apps.tempel.org/FindAnyFile/index.php
Search for any file with "ThumbJPGSegment" in the name. If you added at least one image to your library, the library should contain a file with this name, see OldToad's post: Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it? -
why can i not seem to order more than one print at a time, which of course becomes expensive with shipping, it does not seem to offer me the facility to choose again? either order or cancel!
make an album containing the photos you wnat to print, select all photos in the album and order
LN -
Several things have happened since the installation of the latest version of FireFox:
1. Intermittent opening of the browser from the desktop.
a) Opens in safe mode no problem provided shift key is used.
b) Opens sometimes and remains open
i) Sometimes page switches cause the browser to close
ii) Sometimes page switches continue as expected
c) Opens then closes a few seconds later
2. Intermittent opening of project pages from BOINC
a) Sometimes opens and allows browsing of the science projects website
b) Opens then immediately closes
c) Opens and page switches cause the browser to close
There does not seem to be a discernible pattern to what is going to happen each time the browser is opened.
The only crash report I have was submitted November 2010. I am not aware of any crash reports that have been generated for the current problems on my system.
'''System info:'''
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 3 Build 2600
OS Manufacturer Microsoft Corporation
System Name FASTERMACHINE
System Manufacturer Gigabyte Technology Co., Ltd.
System Model GA-MA770T-UD3
System Type X86-based PC
Processor x86 Family 16 Model 10 Stepping 0 AuthenticAMD ~3322 Mhz
BIOS Version/Date Award Software International, Inc. F8, 10/18/2010
SMBIOS Version 2.4
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.5512 (xpsp.080413-2111)"
User Name FASTERMACHINE\Greg
Time Zone GMT Daylight Time
Total Physical Memory 4,096.00 MB
Available Physical Memory 1.90 GB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 4.59 GB
Page File C:\pagefile.sysMy observation so far is that if you just type keywords, Mail wants to search everything. The reason for the missing results, I think, is because the email is not getting indexed properly. If you rebuild, then things get indexed correctly.
I tried your idea with the quote. Now, no matter what I type, I always get a set of options. But I cannot tell if that was enabled by the quote or if it was already going to do that, because now I don't need the quote to get a list of various options. The first, which I've always gotten is "message contains", but now I'm seeing subject suggestions and such.
Very confusing. I'm wondering if spotlight hasn't been doing some incremental work in the background that we don't know about, and some things will just magically start working now. -
if you go to a webpage with an opensearch link tag like "<link rel="search" type="application/opensearchdescription+xml...." FF3.x highlighted the small arrow left of the search box and you could add the search engine. this does not seem to work in FF4.
If a searchengine for example for the intranet, does not offer a plugin, just the opnesearch xml, how can one add it to the search engines in FF4?You do not get the blue glow on the search engine icon in Firefox 4, but you should still see the "Add ... site" entry in the menu if you click the search engines icon on the Navigation Toolbar.
-
Problem tranferring old iPhone 3GS (ios 6.1.6) to new iPhone 5S (ios 8.1.2) through iTunes on my iMac computer (OSX 10.5.8) . I have backed up the 3GS this way since purchase of 3GS. The computer does not seem to recognize the 5S is there -- no setup assist is appearing on screen. Any ideas welcome.
this may not be your problem my according to the tech specs on apple.com the 5s requires:
Syncing with iTunes on a Mac or PC requires:
Mac: OS X v10.6.8 or later
PC: Windows 8; Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
iTunes 11.1 or later (free download
Maybe you are looking for
-
Payroll results could not be imported
Hi, We are facing a problem while posting payroll results to FI/CO... Error is " Payroll results could not be imported ".. Kindly help its real urgent hr_user
-
I'm horrified at the treatment I have had, all I wanted was to move home and I have been treated like an idiot, my BT move was cancelled and nobody at BT can tell me why, I had to sign up as a new customer, I was guaranteed my original (40 year) phon
-
I had a TON of browsing history in those tabs and there is NO WAY I could recreate it all manually. Is there any possibility that FF could get them back even though the "Restore Previous Session" menu option is greyed out? BTW, I've had more hangs an
-
FM: HR_READ_INFOTYPE Problem
Hi all you ABAP experts! I'm working in a program (report mode) that has to read the data from an Infotype (in this case is IT0584) just after the IT has been created (by the same program, using CALL TRANSACTION). I am using the HR_READ_INFOTYPE FM a
-
HOW TO ASSIGN CREDIT LIMIT TO SOLD TO PARTY
HI Gurus, in this senario payer is assigned to many sold to parties. So my client wants to assign credit limit to SP rather than to PY. can i do that. if yes how. plz reply since it is HIGH Thanks & Regards JM