Image update problem (bug?)

Within a canvas, which is placed in the center of a borderLayout, I am importing images via MediaTracker. I have a dialog and within this dialog, when an item is selected from a list, the image within the canvas ought to change when "ok' is clicked in the dialog.
The image only changes in two instances: (i am using obviously AWT)
1) when I have a repaint() after all the "if then" statements. This update only works if it is CONSTANTALLY updating. A simple loop-inforced single update does not work.
2) if I resize the screen manually, by closing it and re-opening it, or minimizing/maximizing it,..
I have wasted two days trying to solve this, and I admit defeat.
do any of you know what I am unawair of?

It's the repaint() part that seems to get me. Looking at your code up there, it seems that I would have the same issue with repainting after the image has loaded...??
Also, I noticed that after I change the image selected by its dialog pop-up, the image is repainted under where the dialog window was, and if I moved the dialod window around, the image repaints only under where the dialog window was.
here is the part that sticks:
class graphicsCanvas extends java.awt.Canvas
Image Europe,Iraq;
     public void paint (Graphics g)
          enviro = airEnviroDialog.Enviro;          
          if(enviro.equals("Random European Aerodrome"))
               Toolkit toolkit = Toolkit.getDefaultToolkit();
               Image Europe = getToolkit().createImage("EuropeBgnd.jpg");
               MediaTracker tracker = new MediaTracker(this);
               tracker.addImage(Europe,0);
               try
               tracker.waitForID(0);
               catch (InterruptedException e){}
               g.drawImage(Europe,1,100,550,500,this);
          else if(enviro.equals("Al Sahra airfield, Iraq"))
               Toolkit toolkit = Toolkit.getDefaultToolkit();
          Image Iraq = getToolkit().createImage("AlSahraAirfield.jpg");
          MediaTracker tracker = new MediaTracker(this);
          tracker.addImage(Iraq,1);
          try
          tracker.waitForID(1);
          catch (InterruptedException e){}
                         g.drawImage(Iraq,1,100,550,500,this);
          else if(enviro.equals("White Background"))
     g.drawRect(1,100,550,500);
          g.drawString("You chose "+ enviro,200,200);

Similar Messages

  • Camera Raw/Mac image update problem

    I am a new Mac user.  When I adjust an image in Camera Raw (I have Photoshop CS4 and most up to date Camera Raw) and click the Done button my image is updated in Photoshop, Bridge and Camera Raw, however if I go into Finder on my Mac the preview is not updated and if I open the file in, say, Picasa, the original file is opened.  If I click the file and open it in Bridge, the edited file opens.  How do I get it so the preview is updated and the edited file is opened in programs other than Photoshop?

    Editing in ACR is non-destructive (the original image data is not modified) and the edits are carried in either a sidecar file or database, depending upon your settings.  Only ACR/Bridge/Photoshop (and Lightroom) will "see" the edits, therefore the original non-edited image will show when opening in another program.
    One can save directly out of ACR in a variety of formats, which will them incorporate the edits and make them visible to other programs.
    Richard Southworth

  • E5 Ovi Store update Problem/Bug

    Hi,
    Had a notification that a newer version of Nokia / OVI store was available today (22/02/12 Ver. Ovistore_32prdSrv_1_22_014.sisx) so I downloaded and installed it.....
    BUT....
    It stores cache on the phone memory in a directory  imagecache/Juniper and is full of all the icon pictures of apps on the nokia store.........so the phone memory is filling up.
    EVEN WORSE...
    If I go into my pictures gallery they are all being displayed there!!!
    Can't find any of my own photo's because all these stupid icons/pictures from the store! 
    Nokia.....you really didn't test this update fully................. did you? 
    Solved!
    Go to Solution.

    Reinstalled The Device Software from Nokia Suite..........Still no joy
    Open the Nokia Store from the main menu and its tell me I must download the new version or exit.
    Download the new version and screws up the phone as per previous posts.
    Does anyone know where to get the previous version that was active upto yesterday ??
    i.e. BEFORE  "Ovistore_32prdSrv_1_22_014"
    Tried emailing Nokia from the OVI online store and I quote  "Contact publisher for issues found in content: http://nokia.com/ | [email protected]"  and the email bounced back!! Great customer support  

  • I bought a new 5s and its front and back camera are not working, showing black image. My phone is IOS 7 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest.

    I bought a new 5s and its front and back camera are not working, showing black image. My phone is IOS 7.1.2 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest.

    I have the same issue on my iPhone 5s
    I've closed the app and re-booted the phone several times but it did not resolve the issue.
    Upgrading to iOS 8.0.2 did not resolve it either.
    Erasing the iPhone and restoring from a backup did not resolve it.
    I'm not sure what else to do.

  • I bought a new iPhone 5s and its front and back camera are not working, showing black image. My phone is IOS 7 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest on this. Wil

    I bought a new iPhone 5s and its front and back camera are not working, showing black image. My phone is IOS 7 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest on this. Will this resolve my issue?

    any advise..?

  • Chart x scale update problem

    LabVIEW  8.5.1
    Sweep Chart Problem
    The x scale values do not update until after the 2nd sweep.  The red line cursor gets to the end of the sweep and starts the next, but the scale numbers do not update until the next sweep starts.
    It appears to be a problem with the chart, since it happens with any vi with a sweep chart.  I've used versions 6 through 7 for years and never seen this.  I've only recently moved to a new job with a new machine and version 8.5.1., so I'm not sure what to try.
    I've included a simple example.
    Thanks much,
    JSC321
    Attachments:
    Chart Sweep Scale Update Problem.vi ‏32 KB

    You have a typical race condition!
    There is no data dependency between the property node and the while loop, so in your case the loop starts executing first and the property node starts slightly later, immediately erasing the first point. Execution order is not defined.
    All you need to do is add a data dependency, e.g. as with the error cluster in the image. This forces the property node to complete before the loop is allowed to start.
    (Execution order is enforced even if the wire value is not even used inside the loop )
    Try it!
    Message Edited by altenbach on 12-23-2008 11:08 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HistoryRace.png ‏10 KB

  • Netinstall image  installation problem

    Hi, I'm new in MacOSX Server and trying to do image file with System Image Utility 10.6.2 - MacOS10.6 and additional packeges (MacOSXUpdCombo10.6.2, iWork'09, iLife'09) with "AddPackages and Post-Install Script". By making a image no problem but when I start the installation occurs the following problem.
    MacOs10.6 install correct but other programs added in "AddPackages and Post-Install Script" is not installed, and in Macintosh HD is created a folder named Install.76443 with locked directories.
    Where is the problem why the additional packages not installed.
    My SIU configuration is :
    Define Image Source: MacOSXInstallDVD
    Add Packages and Post-Install Scripts
    - MacOsx10.6.2. Update Combo
    - iLife'09.pkg
    - iWork'09.pkg
    Create image
    type: Netinstall
    Install Volume: Macintosh HD
    Save to: Documents
    Image Name: Netinstall of Mac OS X Install DVD
    Network Disk: Netinstall of Mac OS X Install DVD
    Image Index: 1533
    Description: Netinstall of Mac OS X Install DVD
    i want to create one image for all packages and updates and install it from network to all computers in my office.
    thanks

    I think this is covered in a different thread but, in short, the 10.6.2 update will fail to install on top of the 10.6 DVD. YMMV with the iLife & iWork packages as they may run pre-install scripts that will also cause them to fail.

  • How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    How can I save the images and movies on a  external Disk from iphoto program, to protect the images when problems occur in the laptop,

    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
    If you want to back up the Photos only:
    Export them using the File -> Export command.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • I have LR5 on a mac book pro with a external hard drive with LR5 images. my problem is my external hard corrupted reformatedand have to this is expensive and i would to start over in LR5

    i have LR5 on a mac book pro with a WD external hard drive with my with my LR5 images . my problem is my external drive is corrupted .i was told by apple that my macshow the hard drive is there but it is not moumting and have to be reformat. i have to use recovery data to save my images on my external before i can refomat.iam willing to lose my images on my extenal hard drive but i would like to know can i erase my LR5 images and start over or delete LR5 and download it again

    Simply start a new catalog:
    File >> New Catalog
    Choose a new name and save.
    When the empty catalog launches you are ready to start over.

  • My iMac 27" Late 2012 has Image Persistence Problem

    I'm wondering what to do about an annoying image persistence problem on my 27" late 2012 iMac. I got the iMac just a few days ago. Monday actually, so 4 days ago.
    It's the 3.4GHz i7, 8GB, NVIDIA 680MX 1TB fusion drive model.
    Overall it has become the love of my life, but the image persistence thing is getting harder to ignore. This happens after only a few minutes of use. If I follow Apple's instruction on dealing with LCD image persistence, I can make it go away for a while, but it comes back very quickly.
    It is extremely noticeable on a plan dark background. It looks as thought he screen has been left on for a very long time with the same windows open, but it occurrs in less than 5 minutes of use with nothing more intense than a bit of web surfing.
    I've read that this is happening a great deal on these new iMacs, particularly teh 27" machines.
    While the problem seems to be known to those of us afflicted I don't know if Apple has acknowledged an issue or not.
    Here is a sample of the complaints: http://forums.macrumors.com/showthread.php?t=1509571
    I can make the ghost image vanish by bringing up an all white scree for a minute or so or using LCD Scrub.
    I'm wondering if anyone else has foun a solution other than asking for a replacement computer, which Apple seems to be granting on this issue?

    Avoiding image persistence on Apple (IPS) displays
    Avoiding image persistence on Apple LCD displays
    If you cannot resolve the issue yourself, then return the computer for a replacement. You may do this freely within 14 days from date of purchase, so don't delay.

  • Update problem - VBDATA table

    Dear All,
    We have update problems in our Quality systems, and also in every R/3 system that we create from a Production system copy.
    Sometime the UPD and UP2 work processes hung without apparent reason.
    In the SM50 I can see one or more of my update processes running for a lot of time (many hours) on the table VBDATA without perform any action.
    In the tcode SM12 I donu2019t see any kind of lock, and I donu2019t understand why only sometime this problem happens.
    Of course, from the SM13 I can see that during this problem the system is not able to perform any kind of update.
    As I told in the beginning of the message, I have the same problem in other two R/3 systems, both created with a system copy from the production system.
    The Production and the Developer systems seem not affected by this problem.
    Have you got any idea about the reason of the problem?
    Even if the Production systems is not directly affected, all the IT department is not able to work on the Quality system (or any other Test system), and the only workaround is to kill the UPD (or UP2) WPs affected.
    Thanks in advance,
    Federico Biavati
    My R/3 System is a 4.7 on SLES9 and Oracle 10.2.0.2

    Hello Siva,
    This is what I did:
    > Check how many entries do you have in VBDATA currently.
    More than 1.000 in every SAP systems that Iu2019m creating from Production
    > You might want to run the reorganize updates program to clear the old updates
    > that are pending/in error
    Good point!!
    After the reorganization (ST14 u2013 Reorganize update requests) the table VBDATA is empty.
    Iu2019ll check and Iu2019ll let you know if the problem is definitively solved.
    Thanks for you help,
    Federico

  • Updating problem...I have a update that starts out going through but then does not finish just keep running

    also with the update problem it says software update and below the running bar it says connecting to the server

    Please do the following:<br><br>
    #Go to [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 4.0.1] and download a fresh installation file to the desktop.<br><br>
    #Then go to Add/Remove Programs, scroll down to "Mozilla Firefox" and remove it, choosing to keep your bookmarks, customizations etc., (''don't checkmark the box'').<br><br>
    #Then reboot and delete the folder called "Mozilla Firefox" at this location: C:\Program Files\Mozilla Firefox<br><br>
    #Finally run the installation file you downloaded to the desktop earlier.<br>
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.

  • Problem: codebase, jar and image reloading problem please help!

    Hi Java Gurus,
    I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
    <applet code="CameraApplet.class"
    archive="doorcam.jar"
         codebase = "webcam/classes"
         width="375" height="475">
    <param name="imagePath" value="http://judge/webcam/images">
    <param name="webCamImage" value="door.jpg">
    <param name="COMPort" value="COM2">
    <param name="frameRate" value="10"> <!-- could not exceed more than 10-->
    <param name="host" value="judge">
    </applet>
    The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
    I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
    If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
    private void refresh(final URL url) {
    Image webCamImage =getImage(url);
    webCamImage.flush(); // flush out the previous image
    webCamImage = getImage(url); // get a new image
    webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
    When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
    The problem is so strange that I could not find any way to solve it.
    It would be a great help to me if somebody provide me some work around to the problem.
    I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
    Thank you all very much in advance.
    best regards,
    Judge

    Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
    I think its the problem between IE browser and Java Plug-in.
    I which SUN would find these incompatibilities and solve these problems.
    I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
    I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
    I have seen so many people in the forums with all sorts of problems because of this.
    Right now I m desperately looking for work around to my problem.
    If somebody would provide me with the solution to my problem it would be a great help to me.
    thank you all so much.
    best regards,
    Judge

  • 10.5.7 update problems

    After installing the 10.5.7 update, Mail, iTunes and iPhoto will not run anymore. Anyone else having this problem?

    jjtopspin wrote:
    Before I came to these apple discussions re: update problems with 10.5.7, I tried to update this version yesterday and at the end of the download this message came up, the update "Mac OS X update" can't be saved. The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed to Apple.
    I got the same message. The downloaded file that generated the message was only about 560 KB, indicating it was an incomplete download. I moved it to the trash & tried again. The second download attempt succeeded. I had a minor if nerve-wracking issue with the update (the blue looping screen reported in another topic in this forum) but after a forced shutdown & restart the update was completed successfully.
    I have since updated my two other Macs so all those listed in my profile are now running 10.5.7. All do so without any problems & in fact work better & more stably than ever before.
    I doubt that I'm unusual in this respect. Some users will have problems but I believe most won't, & for those that do most problems will turn out to be caused by something other than the update itself. So it has been for every previous Leopard update; I see no reason to think this one will be any different.

  • Cache update problem in Integration Directory

    Hi all,
    We have a cache update problem in our PI development server.
    If we try to edit, save and activate any of the ID objects, under Cache notifications>Central Adapter Engine> all these objects are displayed as gray items.
    We have tried:
    1. Clearing the SLD Data Cache.
    2. Did SXI_CACHE complete refresh.
    3. Did CPA cache refresh.
    4. Did a complete cache refresh of the server.
    5. Restarted the server.
    But still the problem has not bee resolved. Could you pls provide your inputs and resolution points.
    Thank you very much.
    regards,
    Jack Nuson

    HI Jack ,
    first try to manually update the cache from ID select on your cache notifiaction and click on delta cache refresh button and refresh button .IF it does not yied any result then
    Perform a full cache refresh using the URL
    http://<host>:<port>/CPACache/refresh?mode=full . If the cache refresh happens properly then your problem will get resolved other wise you have to see the cache log to view why it failed there it will show you the exact reason . You might need to restart your java server also if the problem persist .
    Regards,
    Saurabh

Maybe you are looking for

  • Help with Movie Clips

    Hi - I'm having a problem with my movie clips playing simultaneously and cannot, for the life of me, figure out what I have done wrong. I'm new to flash, so I may have set something up incorrectly, but here's what I have so far: 11 layers, total: 1 l

  • Website to download the converter from microsoft word to mac word documents

    What is the website the recommend to go to in order to be able to open microsoft word documents on your mac?

  • NY07 Metro Commuter Tax Set up

    Hello We are trying  to setup some Employees with the NY Metro Tax NY07. They already have New York CIty tax (NY01)and we cannot enter the metro tax for them. One lives in CT and has that for his 207 record and NY city tax for his 208. We tried enter

  • Inverse uniqueness in EJB 3.0 many-to-many relation

    Hello. I have an @Entity class, Person, with a @ManyToMany relation with itself. This relation is the friend association. The code of the class is as follows: @Entity @Table(name = "PERSON", uniqueConstraints={@UniqueConstraint(columnNames={"PERSON_N

  • Table positioning

    Good morning, Since Pages 5.5, Apple changed the way tables are positioned in the page. It's behavior is now very strange: it doesn't break lines between two pages anymore as it used to do, only in specific situations. It tends to move the hole table