FillOval blinks and disappears when I compile and run JApplet

public void paint(Graphics graf)
          graf.setColor(Color.blue);
          graf.fillOval(300,200,50,50);
     }When I run the JApplet the oval blinks and disappears. I have tried repaint but this makes the whole container white and the oval can be seen then. I have used JPanels on BorderLayout NORTH, SOUTH and WEST all with an orange background colour. It's as though the oval goes behind the content pane.
Edited by: Aurora88 on Feb 3, 2008 3:50 PM

public void init()
                mainNorth = new JPanel();
          add(mainNorth, BorderLayout.NORTH);
          mainNorth.setBackground(Color.orange);
          mainNorth.add(title1);
          mainSouth = new JPanel();
          add(mainSouth, BorderLayout.SOUTH);
          copyright = new JLabel("? 2008 Frenzy Fours");
          copyright.setFont(new Font("Verdana", Font.PLAIN, 9));
          mainSouth.add(copyright, BorderLayout.SOUTH);
          mainSouth.setBackground(Color.orange);
          mainCenter = new JPanel();
          add(mainCenter, BorderLayout.CENTER);
          mainCenter.setBackground(Color.orange);
          mainEast = new JPanel();
          add(mainEast, BorderLayout.EAST);
          mainEast.setBackground(Color.orange);
public void paint(Graphics g)
          g.setColor(Color.blue);
          g.fillOval(300,200,100,10);
     }The blue oval blinks and disappears when the applet is run. I don't know why. I've fiddled with the paintComponent() but no luck...

Similar Messages

  • Why are my styles disappearing when I cut and paste?

    Why are my styles disappearing when I cut and paste?

    Go to Preferences, and then into ClipboardHandling. Click a radio button choice for All Information instead of Text Only.

  • I uploaded the giftcard money to my itunes account. and now when i try and buy a song it keeps saying that it has to charge my card. why wont it let me use the giftcard money? how can i fix this?

    i put money to my itunes account. and now when i try and buy a song it keeps saying that it has to charge my card. why wont it let me use the giftcard money? how can i fix this?

    If you still have your old card listed on your account then try selecting the 'none' option and remove it and then try entering the card's details from scratch. If that doesn't work then what is the full error message that you are getting, and the card is registered to the same name and address (including format and spacing) that you have on your iTunes account ?

  • Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

  • I just updated my Iphone 4 to the IOS 6 update and now i cant connect my iphone to Itunes because apparently my itunes is out of date? and then when i try and update itunes it says i need a new OS completely is there anything i can do???

    I just updated my Iphone 4 to the IOS 6 update and now i cant connect my iphone to Itunes because apparently my itunes is out of date? and then when i try and update itunes it says i need a new OS completely is there anything i can do???

    Are you running Leopard on your Mac, Laurie?
    If so, try instead updating to iTunes 10.6.3.25. (That supports earlier models of iPhones running iOS 6, even though it can't run the new iPhone 5s.)
    A .dmg installer for iTunes version 10.6.3.25 for Mac OS can be found at the following download page on the Apple website:
    iTunes 10.6.3

  • HT204053 I recently got an icloud account and now when I try and sign in it says the e-mail account is already taken.  How do I get in to my icloud account?

    I recently got an icloud account and now when I try and sign in it says the e-mail account is already taken.  How do I get in to my icloud account?
    I wouls also like to know how to download pics off of my ipod 5th generation onto my PC computer through icloud or any other way.

    It sounds like you are trying to create a new icloud account, not just logging into an existing account.  When you type in your Apple ID and get that error, it's because you are trying to create an account using the same ID that is already being used in another account.
    Go to Settings>iCloud and scroll to the bottom of the screen.  If you are logged in, press the Delete button, then try logging in with the existing ID.
    As for pics, the most secure way is to connect ipod to PC with USB and look at the Photos tab for your device in iTunes.  Using Photo Stream is another way, but it doesn't always work, depending on conditions.

  • Why does the Apple logo appears and disappears when I'm the iphone 4?

    When I'm using iphone 4 the Apple logo appears and disappears and appears lock screen. What to do? It' s a bug or a hardware problem?

    Hi sarasalves,
    Welcome to the Support Communities!
    If the Apple logo is flashing on your iPhone 4, you may need to put the iPhone in recovery mode so that you can restore it.  The article below explains how:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    I hope this information helps ....
    - Judy

  • (I do NOT use norton at all) Some of my saved bookmarks keep disappearing when I close and re-open my browser..this is getting very frustrating! (firefox 4.0)

    I have read about this happening, but the only solution is for people who use Norton, and I do not-it is not even on my laptop at all..
    I have firefox 4.0. Every time I close firefox, some of my SAVED bookmarks are missing when I re-open later. I tried re-saving them, but then when I close and re-open firefox later on again, some more bookmarks are gone..this only happens when I exit for a while..if I close and re-open firefox right away the bookmarks are all still there.
    This is very frustrating! I never had this problem with firefox 3.whatever..PLEASE HELP??
    ps. i am not very technical, so if there is a bunch of hard things I have to do myself to fix this, then I think I will switch to Internet Explorer..

    Yes - see [[options window - privacy panel]]. There is an option to clear some of the history when Firefox closes, you can customise that.

  • HT203163 I recently had to replace my laptop and now when I try and sync my phone to my laptop I am asked to authorise the laptop, but after I enter my login and password, the search for itunes fails with a message that itunes is not currently available

    I recently had to replace my laptop and now I can't sync iTunes and my phone - the message is that the laptop is not authorised and when I try and authorise it it says that the itunes store is currently unavailable - but it is available on my phone, and I have been trying for over 24hrs - it should be available by now.
    I have checked my firewall settings and they are ok
    How can I remove old PC's that I no longer use and make sure that this is the only computer that is authorised for my account - and how can I access the iTunes store so that I can authorise it?
    Help please

    i had to format my laptop
    You can reinstall Lion (Mac OS X) by pressing Command + R while booting your Mac. No need to re download Lion again.
    Help here >  OS X: About OS X Recovery

  • I cant backup my iphone as it says completely different username and passcode when i try and login

    Ya... not sure whats going on
    Kinda confused
    when i try and login with my email and passcode it prompts me to someone elses username and passcode
    starting to get really upset as i need my contacts and photos.....................

    i also face the same problem. i have updated my i phone 4 to ios 7.0.4 and i tune 11.1 .when i start back up now on i tunes though it started to back up some apps but it shows the msg that back up is corrupt

  • Suddenly all incoming Text messages only appear on my home screen and disappear when opened, What happened?

    Two days ago all my text messages became scrambled. I get notified when a new message appears on my locked home screen, but when I open them up, they disappear until I answer the thread. Unfortunately, I can't read the entire message when it is on the locked home screen. When I reply, other texts are mixed in under the person's thread I am trying to answer. I deleted all old texts in hope that this would resolve itself, but it became worse! I have not changed any setting. Any suggestions on how to fix this? Thanks!

    Same thing is happening to me whethere the texts are received on the imessage or other text message apps. The message is showing on the lock screen halfway and when I try to pull it it is not here. This is happening since IOS 7. Is there still a glitch??

  • Time not disappearing when using safari and email. How do I make it go back to normal.

    My ipad has just started keeping the time and battery settings displayed all the time. Not sure why its doing this and can't
    Find where to turn it off in settings. Help

    If you mean at the top of the screen then that info bar will stay on the screen when you are in Safari and Mail, and a lot of other apps and you can't remove it (apps where it won't show include Videos and Photos if viewing photos full screen)

  • Love app tabs but they disappear when I quit and restart FF4 beta.

    Hello, I've set up my app tabs twice, but they are gone after I have quit Firefox. On restarting, the only tab is my home page. Thanks, and hope you can help.

    Just loaded Firefox 4.0 Final release and had this problem. I normally tell Firefox to forget browser history. When I disable this feature Firefox remembers my App Tabs. I really wish I didn't have to ch9ose between these options! I like to keep my browser history, cache, etc clean for added security and privacy. I'm opting for security over convenience so I guess I'm not going to use App Tabs for now.

  • Tags disappear when I open and save a file

    I've tagged some pdfs to help organize them in their folder. If I open one to edit it, the tag disappears as soon is the file is closed.
    Thus destroying the organization, as I've got the folder set to arrange by tabs.
    Is this a bug or somebody's idea of a feature? Any way to change this behavior?

    Well, you could just make your firewall behave and create an exception rule as the warning suggests... It's unlikely that this is PS itself, anyway. Eitehr it's a flakey driver or a cracked plug-in you may be using (not implying anything here, so keep cool) may produce a wrong hash value/ signature and trigger the alarm.
    Mylenium

  • Published website has components that shift and disappear when browser scale changes.

    Hi everyone,
    I am including a link of the published website, as well as including some screen shots of what the issue looks like from my point of view. Just as a pre-emptive note: I have had this problem before, and it has been solved by publishing an entirely new site. I re-saved the file to a new name, as well as published the site under a new name and continue to experience this issue. Also, nothing is extended to the edge (for that infinite browser width/length trick).
    Thank you for any tips or assistance!
    http://argp07.businesscatalyst.com/index.html
    ^ This is what the site looks like in Muse.
    ^ This is what the published site looks like in my browser (Google Chrome) at 100%.
    The word 'Practice' is missing from the top right of the page.
    Everything else is proportioned properly.
    ^ This is what the published site looks like in my browser (Google Chrome) at 90%.
    The word 'Practice' has reappeared, but the vertical line has disconnected (shifted downwards).
    Everything else is proportioned properly.
    ^ This is what the published site looks like in my browser (Google Chrome) at 80%.
    The word 'Practice' has disappeared again, along with the vertical line.
    Everything else is proportioned properly.
    ^ This is what the published site looks like in my browser (Google Chrome) at 70%.
    The word 'Practice' has disappeared again, and the vertical line has disconnected (shifted downwards).
    Text box at the bottom has turned into two lines of text.
    The layers of this layout include:
         Vertical line (1 px width rectangle)
         Horizontal line (3 px width rectangle)
         Architects Group Practice text box
         White rectangle OVER the bottom of the Architects Group Practice text box, UNDER the Vertical and Horizontal lines.
         Accordion panel
         Slideshow
         Contact info text box

    Update:
    The text issue has been resolved, however, the line is still jumping around the site. It seems to be anchored in proportion to the bottom of the page for some reason.
    I've also simplified the layout so there is no white rectangle.
    New site address:
    http://argp09.businesscatalyst.com/index.html

Maybe you are looking for