Why does my Panel not update with the new picture?

Hi!
I call the folowing panel from my main Window where on certain events I want to get the panel to display a different image. The problem is that the initial image stays on.
import java.awt.*;
import java.awt.image.*;
public class Panel1 extends Panel {
     Image thebkg1;//image to display
Panel1(Image ig){
     thebkg1=ig;
}//end the constructor
public void paint(Graphics g)
     g.drawImage(thebkg1,0,0,this);
}//end paint
public void update(Graphics g){
     paint(g);
}//end update
public void dImg(Image po){
     thebkg1=po;
     repaint();
}//end dImg - gets called by the main Window in order to display a new image
}//end Panel1 class
Can somebody please let me know what is wrong with the code?
Thank you

public void dImg(Image po){
thebkg1=po;
validate()
repaint();
}

Similar Messages

  • Documents that are park in FBV0 do not update with the new user name when

    Hi,
         I need to find out why documents that are park in FBV0 do not update with the new user name when any changes are made.  Also when we park using MIR7 and make changes to the documents at a later time the document updates with the new users name.
    Requesting you to please suggest what could be the reason.
    Earliest reply will be highly appreciated,
    With regards,
    Rj

    Hi,
        I have checked this in system. I posted one Parked invoice using T.code FV60 and there i appeared my name because i created. But after some time one of my collegue changed the reference and text field with his login i.d. But still in the invoice it is showing as my name whereas if we go to the environmnet, there in the changes we can see what are the changes done and it is appearing my collegues user i.d. But in the main invoice it is still appearing my name.
    Regards,
    Rj.

  • Why does Apogee Jam not work with the Ipod Touch 4G

    Hi,
    I have a Apogge Jam an it works fine with my Mac Book, but it does not seem to be compatible with my Ipod Touch 4g.
    Only the Gibbson L&M app recognize the Apogee Jam, but no other App (Ampkit, ....) :-((
    With the IPhone 4 it shall work, can tell me anybody why Apogee Jam is not compatible with the Ipod Touch 4g (
    although the Gibson-App works)?
    Is there perhaps still other Apps which work with the Ipod Touch and Apogge Jam?
    Thanks
    Michael

    I cannot answer the specifics, but I would guess it is a software issue because Griffin iTalk app will cooperate with the Apogee JAM on an iPod Touch 4g running iOS5.  If this app can do it, then one would presume the other apps could be updated to do it also.
    From last week up until yesterday, Apogee actually listed the 4G Touch as a compatible device with the JAM.
    Apparently there was some confusion about Garageband now supporting iPod Touch and its functionality with JAM.

  • Why does my Blog not publish with the rest of my new pages and photos????

    Much more work was done on my iWebsite today and I even made a rudimentary beginning of a blog.
    QUESTION:
    Why does my blog not publish?
    Lorna in Southern California

    James, the blog is on Safari now. I am embarrassed to say that I had already forgotten that I needed to make a link to the Site Menu. Since I had done all of that in a tear of activity previously, it's as though the process did not stick in my head. Sort of like forgetting to plug in the computer. 8-(
    I did not even realize what I had done wrong until I made a hyperlink from that site to my site menu and checked to see that the blog became visible. It's disconcerting to think that this kind of thing could happen to me again. 8-(
    I would be very interested in seeing people's blogs and how they use them. I've seen blogs used as news reports, blogs with music videos, blogs with photos. I earlier thought that a blog was like a diary: Words only.
    Lorna in Southern California

  • Why does image trace not align with the image?

    I'm using a fully updated version of Illustrator CC 2014 to trace images that have had the background removed by the client. No matter what settings I choose, it appears the tracing result is offset slightly in both X and Y axis. See my screenshot below. I found someone who reported this problem early last year in CS6 but received no useful suggestions. I do laser cutting and want to cut around the image so this is problematic. I originally thought perhaps the image had anti-aliasing or not fully white pixels in the background, but I'm using a threshold of 254 which means anything greater than (0,0,0) should become black. So while there could be off-white pixels to the right of his head that pushes the line past where I want it, the outline should include the hair and shirt on the left which it is not.

    I cannot answer the specifics, but I would guess it is a software issue because Griffin iTalk app will cooperate with the Apogee JAM on an iPod Touch 4g running iOS5.  If this app can do it, then one would presume the other apps could be updated to do it also.
    From last week up until yesterday, Apogee actually listed the 4G Touch as a compatible device with the JAM.
    Apparently there was some confusion about Garageband now supporting iPod Touch and its functionality with JAM.

  • Why do some apps not work with the new ios update

    i tried deleting andstarting over again(e.g : Hay day) but still ! I'm reallllllllly getting sick and tired of this ... Not even to mention how many times the browser(Safari) has stopped working and froze since i started typing this message ....

    you may need to update the particular apps that are causing you crashes. Go to the app store and tap "updates".
    You can also do this via itunes, click on "apps" on the left, then updates on the top and update all. then re-sync your phone.
    Hope this helps!

  • Why will Macfee Virus not work with the new version? How do I swich back to the previous version that did not have this issue?

    I selected to let Firefox install the update. After the update was done. A message came up and stated the new version of Firefox does not support the add-ons for Macfee virus software. How do I switch back to the previous version, that does support Macfee virus software add-ons? In the mean time I will have to switch back to IE until this is resolved.

    Your Anti-virus application is not disabled, just one silly little McAfee extension for Firefox.
    See McAfee for an updated version of their Firefox extension.

  • Why does my iPhone not charge with the wall charger?

    i have recently purchased an iphone 4 (within the last month). it has charged via the wall charger at first but now, the wall charger does not work. it does charge by connecting the USB cable to my computer. is there any way i can get my wall charger working? or will i have to get a new one? thanks.

    Try a different wall socket - if you haven't already and/or try this.... reset the iPad
    Hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears - ignore the red slider - let go of the buttons. then try again.
    You could also try updating your software as I have no idea which version you are running on your iPad.
    Message was edited by: Demo

  • Why does Live View not work with the following: @media only screen and (max-width: 480px)?

    When I use the above media query in my stylesheet Live View ceases to update the viewport.  I have to update it manually each time I add or change a style.  This is not the case when I use styles under a common tablet sized query @media only screen and (max-width: 768px), or when there is no query at all.  Is this a bug or is there something I am missing here? 

    Code errors might account for the discrepancy. Validate your code and fix any reported errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • Why does 10.7 not come with the unix command make? this is absurb.

    i need to install some perl modules that require make...the system doesn't have make on it...
    pretty annoyed.

    Install XCode 4.1 from the App Store (free)

  • HT204347 why does face time not connect with the person I'm calling?

    I am trying to call my son's iphone using face time.  He can see me dialing in, but the call won't connect.  Any suggestions?  Thanks.

    Can he call you?

  • HT202157 Why does apple TV not come with the micro cable?

    I spent 100 bucks on this thing. It would be nice to know if i need the cable to watch my TV. This thing just stopped working. I'm going to return this and go get the chrome cast (35 dollars and it works). This is a major pain to have to go out and buy one.
    Thanks apple.

    Welcome to the Apple Community muemueller
    Apple doesn't supply the cable because only a handful of people ever need one and of those that do the vast majority will already have one.
    For the overwhelming number of users who don't need or already have a cable this represents a saving when they purchase their Apple TV which of course then doesn't include the price of a cable.
    For the very few users who do need to purchase a cable, they have lost nothing because they are only paying for something they would have had to pay for when they bought the Apple TV, if a cable was included in the box.

  • Why does my iPad not recognised with my new iMac?

    it continuously beeps as though it is being connected and disconnected.
    any help would be appreciated.

    Device not recognized
    iOS: Device not recognized in iTunes for OS X

  • TS3988 my iphone will not update to the new email and password

    my iphone will not update with the new email and password

    Is your phone signed into an old iCloud ID of yours in Settings>iCloud?

  • Why does flash player not work with facebook?

    Why does flash player not work with fcebook?  Whenever I wish to view a video, I get the message that i need to upgrade my flash player. Then no matter how often I download and install flash player I still get the message that I need to upgrade my flash player.  When I go check which version I have, I always get the message that I have the most current one.  I run Mozilla Firefox with Windows.  I don't know anything else.
    Message was edited by: khettich

    This means you don't have the latest version installed.  Update to 11.9.900.117, and Firefox will allow it: Flash Player Plug-in (All other browsers)

Maybe you are looking for