Can Someone tell me why the background is being cleared

Hello. I have a applet that adds a single panel.
I want this panel to paint some stuff at first and then NOT clear itself when it paints again. I have overridden both repaint and update, but the panel continues to clear itself. Here is a portion of the panel code...
public void repaint()
update(getGraphics());
public void update(Graphics g)
{System.out.println("control update");
    paint(g);
public void paint(Graphics g)
{System.out.println("control paint "+ g);
    if(firstTime)
      g.drawImage(GetParameters2.controlPanelImage, 0, 0, 320, 50, this);
      firstTime = false;
else
if(active != null)
if(active.equalsIgnoreCase("Mute"))
g.drawImage(mute[select], 30, 10, 34, 40, this);
active = null;
After the first paint I want it to only repaint the "mute" image over the original image.
Thank you. Duke$$ to anyone who can give me a good answer and a solution that works.

You don't need repaint();
use double buffer to avoid flickering.
search in this forum for _offscreen jef06
paint the first image first and the second after.
use g.setPaintMode();
jvm change only the pixel who has changed.
at the end use
g.dispose();
g.finalize();

Similar Messages

  • Can someone tell me why the Iphone 5s 64gb is in the US $399 which is equivalent of £250 yet to buy it in the UK costs £709!!!!!

    can someone tell me why the Iphone 5s 64gb is in the US $399 which is equivalent of £250 yet to buy it in the UK costs £709!!!!!

    You're looking at the SUBSIDIZED price of the iPhone in the US that carriers offer by having the purchaser enter into a 2 year contract. 

  • Can someone tell me why the Yahoo mail server (IMAP) keeps requesting my Yahoo email password and says it's incorrect?  Yahoo is my Mac mail server.  This has happened before, but this time I can't get it to 'Cancel'

    Can someone tell me why the Yahoo mail server (IMAP) keeps requesting my Yahoo email password and says it's incorrect?  Yahoo is my Mac mail server. This has happened before, but this time I can't get it to 'Cancel'.

    You will have to contact Yahoo Support.

  • Can someone tell me why the ligtht on my Apple TV IS FLASHING ALSO WHEN WATCHING MLB THE PLAY STOPS WHILE REBUFFERING ALOT ANYONE KNOW THE CAUSE

    Can anyone tell me why the light on the Apple TV Devices light keeps flashing. Also why when I'm watching MLB the veido stops
    often and it rebuffers.
    Thanks

    Hey rochelle84,
    Thanks for the question. The status light on the front of Apple TV indicates what is happening. If it is flashing continuously and quickly, it indicates that Apple TV is having problems:
    via page 27 of manuals.info.apple.com/MANUALS/1000/MA1607/en_US/apple_tv_3rd_gen_setup.pdf
    If Apple TV isn’t responding, first make sure:
    - The cables between Apple TV and your TV are pushed all the way in.
    - The power cords for Apple TV and your TV are securely connected to a working
    power source.
    - Your TV is turned on and set to the correct input.
    - Apple TV is connected to your network. Choose Settings > General > Network,
    and see if Apple TV has an IP address.
    - Your network and Internet connections are on and working properly.
    If you still have trouble, try resetting your equipment by disconnecting Apple TV, your TV, your wireless networking equipment or base station, and your router from the power outlet. Wait 30 seconds, and then reconnect everything.
    For additional troubleshooting steps, see the above resource (Chapter 4 for troubleshooting).
    Thanks,
    Matt M.

  • I don't know what's wrong with my Mac but I can't watch Youtube videos. I can watch on other device though. Can someone tell me why the videos are not working? Thank You ^_^

    The Youtube videos is loading slowly on my mac but it loads normally on other device. It always buzzing every single second.

    One of the following steps should help.
    1. Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Enable Plug-ins
        Safari > Preferences > Security
        Web Content:  > "Enable Plug-ins".
           or
        Internet Plug-ins >  "Allow all other plug-ins
    3. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box for
       "You are currently in the HTML5 trial".
    4. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
        Uncheck the boxes next to all items.
        Check the box next to "Remove all website data".
        Click "Reset".
    5. Turn off Extensions if any.
        Safari > Preferences > Extensions
    Best.

  • Most of the time I get The Connection Was Reset. Can someone tell me why this happens?

    When I click on Firefox or when browsing or going from one site to the other I get "The connection was reset" then have to click on Try Again.
    Can someone tell me why this is happening?
    Thank you.
    THE CONNECTION WAS RESET again this morning. I even get this message when I click on the Firefox Icon to get on the net. When for example I download something then it returns me to their site I get The Connection Was Reset. When I uninstall a program and it sends to to their site in order to answer as to why I am uninstalling their program then I get The Connection Was Reset.
    Every time this happens I have to click on Try Again and find this to be annoying.
    This does not happen once or twice a week, it happen ALL THE TIME.
    This morning I went to Safe Mode and followed the instructions on INTERRUPTED OR RESET CONNECTION which tells us what to do but this did not work either.
    Would be great if someone was able to let me know what to do in order to prevent this message appearing all the time.

    Do not know how to delete this reply. I replied instead of editing my question. I have edited the above now.

  • Impossible to update the softwares from the top CC menu. First the menu does'nt show the software on my computers and after a while of seaching, the icon disapear from the menu and no uptade. Can someone tell me why. Thank you

    Impossible to update the softwares from the top CC menu. First the menu does'nt show the software on my computers and after a while of seaching, the icon disapear from the menu and no uptade. Can someone tell me why. Thank you

    This is an open forum with a mix of other users and Adobe staff, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Can someone tell m why my iPad 2 doesn't display the YouTube app? I'm so confused. It is a standard app n the original iPad.

    Can someone tell m why my iPad 2 doesn't display the YouTube app? I'm so confused. It is a standard app n the original iPad.

    Well you already know the answer, but it was not included in iOS 6. Google released an YouTube App for the iPad so you can download that in the App Store.

  • Can someone tell me why can't I delete a picture of a text message conversation? I touch and hold a picture in IOS7.0.3; I touch More, I click the picture(s) and I click the garbage bin. The picture gets deleted, but then it comes back in a seconed!

    Can someone tell me why can't I delete a picture of a text message conversation? I touch and hold a picture in IOS7.0.3; I touch More, I click the picture(s) and I click the garbage bin. The picture gets deleted, but then it comes back in a second!

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Can someone tell me why, since upgrading to Yosemite, I keep getting a message window saying "Another device on the network  is using your computer's IP address?"

    Can someone tell me why, since upgrading to Yosemite, I keep getting a message window saying "Another device on the network  is using your computer's IP address?"

    That may be what is a fairly common problem of 2 devices mistakenly assigned the same address. Try shutting off all of the devices connected to your router, reboot the router and then the devices connected to it.

  • Can someone tell me why Apple cannot produce a Scabble game that works on Mountain Lion. So frustrated that this is not happening with all the technology available.

    Can someone tell me why Apple cannot produce a Scabble game that works on Mountain Lion. So frustrated that this is not happening with all the technology available.

    The only companies that can make a Scrabble game are the companies that own the rights to the game; Hasbro owns the rights in the US & Canada, Mattel owns the rights outside of the US & Canada.
    You need to be speaking to those two companies.

  • Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I

    Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I cannot install lightroom 5 until the upgrades from 4 are on the pc, (lightroom 3 installed off disc but 4 is a copy of the upgrade download I got when I bought it) These serial no's are legit and  are registered under my account with adobe, but it still gives me the Big Red Cross when I put my serial no in! Please can someone help. I am at a loss. Thx Heidi

    Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I cannot install lightroom 5 until the upgrades from 4 are on the pc, (lightroom 3 installed off disc but 4 is a copy of the upgrade download I got when I bought it) These serial no's are legit and  are registered under my account with adobe, but it still gives me the Big Red Cross when I put my serial no in! Please can someone help. I am at a loss. Thx Heidi

  • Plerase can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I

    Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I cannot install lightroom 5 until the upgrades from 4 are on the pc, (lightroom 3 installed off disc but 4 is a copy of the upgrade download I got when I bought it) These serial no's are legit and  are registered under my account with adobe, but it still gives me the Big Red Cross when I put my serial no in! Please can someone help. I am at a loss. Thx Heidi

    BrightBluephotograph wrote:
    I cannot install lightroom 5 until the upgrades from 4 are on the pc,
    You don't need to have Lightroom 3 and 4 installed on your computer to install Lightroom 5.  Just install Lightroom 5 and input your serial number for 3 in the previous version box and your serial number for 5 in the upgrade box.

  • After i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    after i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    Nothing is working and I can't find the Roboform toolbar. Your lack of direct support is really irritating- a live chat at least would be helpful.

  • Can someone tell me why

    Can someone tell me why is the ctrl not returned back to the println stmt of method counter after the method counterRecursion is executed???
    pgm
    class Trial1
         int ct=0;
         void counter(String word)
              counterRecursion(word);
              System.out.println(ct);
         void counterRecursion(String w)
              if (w!=null)
                   switch (w.charAt(0))
                        case 'a':
                        case 'e':
                        case 'i':
                        case 'o':
                        case 'u': ct++;
                        default:counterRecursion(w.substring(1,w.length()));
    class Trial2
         public static void main(String args[])
              try
                   Trial1 c=new Trial1();
                   c.counter("hello");
              catch(Exception e)
         }     

    What fsato4 means is never use an empty catch block:
    try {
        // code
    catch (Exception e) {}If there's an error anywhere (as it seems it's happening) it is being ignored.
    Using:
    try {
        // code
    catch (Exception e) {
        // do something with the exception, don't simply ignore it
        e.printStackTrace();
    }Prints any error in the console.

Maybe you are looking for

  • Installing Oracle Application Server 10g 101202 on Windows 2008 64 bit

    Hi All, what i need to do is install this software like this: installing Oracle Infrastructure to handel Sessions as db for oracle forms & reports install Oracle Forms & Reports Service as Middle-Tire on the same machine in defirent home configure my

  • For those who need Edit before Call function

    I found many post in forum/ discussion board outside complaining about why iPhone is missing edit before call features (select the phone number and add the prefix, int'l country call, dial code, etcs). This feature is relatively standard in other bra

  • Payments throug Cheque Issue

    We are using transcation F-58 and FBZ5 for cheque Printing.Have  already gone through SDN -Google . How F-58 is linked to SAP-script and Print programe (name ). How to find custamized programes with F-58. I excuted a programe YRFFOUS_C with parameter

  • PE 2 suddenly won't open

    My PE version 2 suddenly will not open.  I get a error "Could not complete your request because of missing or invalid personalization information".  It worked just fine a couple of weeks ago.  Any ideas?  I also use PE 11, but like 2 for some other t

  • I need ver 11 flash player.  Can anyone help with this?

    Can anyone get me ver 11 flash player?  ver 12 is not compatable with a game I play.