Painting swing elements when you�re treating and swing element events

Hi, I need to repaint several swing elements while executing and action associated to another swing element event. I�ve seen in java doc that this is not posible because event-handling code and painting code executes on the event-dispatching thread. Is posible to solve this problem, how could i do both things at a time?
It seems to me a strange thing the fact that is not posible to do this.
Thanks in advance.

Create a new Thread to execute your 'action' code.
See this section from the Swing tutorial for more information on using threads:
http://java.sun.com/docs/books/tutorial/uiswing/mini/threads.html

Similar Messages

  • What does it mean when you call someone and it goes straight to the 3 beeps to mean cancelled

    hi
    what does it mean when you call someone and it goes straight to the 3 beeps to mean cancelled? this phone doesnt even ring, it just goes straight to the BEEP-BEEP-BEEP, its an iphone 4 and on IOS7 and it was ringing eailier on in the day when i spoke to this person. it wouldn't mean i have been blocked would it?
    what does all this mean?
    thanks
    mrredrunner100

    i got my friend to message this person to see if they had the same problem, and the message went through and i think he got a reply, and all of a sudden this has started to work again (calls only) but apparently none of my messages went through that i have sent since the block activated. and they still havent even though there working again, and "apparently" a message was sent to me at 9pm today and it has never arrived. so imessage and text still isnt working, before i go asking this person about this, is this a genuine block or is there a phone problem?

  • What does it mean when you computer crashes and when you turn it back on it shows you a blank blue screen with a little folder and a question mark in the middle?

    What does it mean when you computer crashes and when you turn it back on it shows you a blank blue screen with a little folder and a question mark in the middle? It's a old imac from 1997.

    I don't have original discs that it came with.
    Then you still can use the second option with the keyboard combo I posted, called "resetting the PRAM."
    Also when you way hold the c key down do you mean turn computer off and turn back on holding the c key?
    Yes, or you can simply restart. As you don't have the CDs, this isn't on the plate any more.
    The internal backup battery is not expensive and, in most iMacs is user-replacable. If yours has a tray-loading optical drive like this one:
    it takes a major teardown to replace the internal battery. If this is the case, you'd be better off to leave the computer plugged in all the time; that eliminates the main reason for having a working battery.
    If it has a slot-loading optical drive like this one:
    things are much easier. The battery is visible through the RAM access door on the bottom of the computer case. The manual:
    http://manuals.info.apple.com/en_US/iMacG3_2000UserManual.PDF
    has sketches of how to access the RAM and therefore the backup battery. Unfortunately, the pdf on the manual goes up sideways on-screen and the RAM instructions are pretty deep into the manual. It's probably easier to scroll (for a while) to the section on adding RAM and print the applicable pages.
    When you work on the battery, some sort of non-conductive pliers or large tweezer or forceps help unless you have tiny fingers. Make sure to note the polarity of the old battery and install the new one in the same orientation.
    The battery itself is readily available. If price is no oblect, you can get it for a small rasom from Radio Shack Store ("Tandy" outside the US) as part number 23-026.
    Online, they are dirt-cheap even after adding shipping. I buy backup batteries form this outfit:
    3.6v Newer Technology Lithium 1/2 AA PRAM Computer Clock Battery

  • Ipad will work when you hit home and then slide the unlock bar - then when you get to the homepage, nothing works - not the home button, it wont rotate, scroll, cant choose icons...nothing.  help!

    Ipad will come on when you hit home and then slide the unlock bar works fine - then when you get to the home page where the icons are, nothing works - not the home button, it wont rotate, scroll, cant choose icons...nothing.  help!

    The home button is the main button off the screen - where is the sleep button?  When I hit home I only see the lock slider (its black) and a button that has a flower on it that pulls up photos we took that are on the ipad.  Thanks for your help!

  • When you back up your Iphone/Ipad it backs up for camera roll. but when you take pictures and it uses photo stream, does that mean there are two copy's of your photos on icloud one set for photo stream and one set for backups?

    When you back up your Iphone/Ipad it backs up your camera roll. but when you take pictures and it uses photo stream, does that mean there are two copy's of your photos on icloud one set for photo stream and one set for backups?

    What do you mean by storage quota, does that mean i could be photo streaming about 1gb of photos and it does not get taken away from my free 5bg.

  • HT1657 What happens when you rent movies and they don't play? How come that question is not on the list?

    What happens when you rent movies and they don't play and you tried getting credit for it?  I rented two movies which they were very very old movies in black & white and they both don't play.  I never had this problem before even when downloading videos. Now how can I get credit for it?  I contact itunes a number of times and no one has done nothing as of yet.  Itunes also asked me for my order number which I sent them but still no credit.

        Great question MommaBof4! This is actually something that can be completed. VZW does have the option to turn this feature on or off based upon the users request. If you would like to update this feature on your device please give us a call by dialing *611 send from your VZW device, thanks!
    MatthewS_VZW
    Follow us on Twitter @VZWSUPPORT

  • Hello After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).

    Hello
    After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).

    I found this other thread discussing this topic, no fix, I will revert to 9.1.1 from Time Machine and wait for a new update.
    https://discussions.apple.com/thread/3023160?

  • I have recently updated to iPhoto 9.2.1, more by accident I guess. In the older version off iPhoto when I imported photos and gave the event his own name, this name was also used in the "masterfile"

    I have recently updated to iPhoto 9.2.1, more by accident I guess. In the older version of iPhoto when I imported photos and gave the event his own name (for exampample "110723 birthday son 2011"), this name was also used in the "masterfile", so I could find the file by his name ("110723 birthday son 2011") in the "masterfile" on my HD and copy and paste it from there to other computers.
    In the new version the file gets stored under a seemingly random number, which does not give me any information about the content.
    Is there a way to fix this? Would it be different in apperture?
    Thanks
    Harald

    I have Iphoto '09, version 8.1.2 (424). I am having an identical problem.  All my pictures are imported into Iphoto when I downloaded them from my camera.  Until recently, I thought that the pictures were actually saved in the library.  Since I need to crop my pictures for the web, and Iphoto doesn't do that, I purchased Photoshop Elements to do that.  To my surprise, when I try to get a picture from Iphoto to Photoshop, it can't be done. That was when I realized, after wasting a lot of time, that the photos are not in the Iphoto library.
    I started naming the pictures on Iphoto so I had a recognizable file name to open on Photoshop. Couldn't find it.  I looked in the Backup folder and the Transfer software folder (I have a Nikon camera), and the names I entered in the Iphoto display, could not be found.
    When I am trying to upload a photo to the web, I get the Finder folder showing  with an active folder called "Photos" under "Media", which only displays Iphoto and PhotoBooth.  This is a folder name that I cannot find in my HD anywhere when I look for it.  If I edit a picture with Photoshop, I am not going to save it back to Iphoto (not sure whether it will work properly).  How do I get my folder of edited photos to show when I want to upload a picture to the web?
    Where (the name of the folder) do I find the pictures I see displayed on the Iphoto library, including any name changes, keywords added, and so on?

  • HT5622 What do to when you buy app and it doesn't work even though you are billed.

    What to do when you buy an app and it doesn't work after you were billed

    Start a ticket here: http://expresslane.apple.com
    Go to iTunes, iTunes Store.

  • On Mac OS X snow leopard, when I quit firefox 4, all the app tabs I set up get deleted. Is that suppose to happen? on your website it says that when you close firefox and reload the browser the app tabs should be there on start up?

    When I close the firefox browser but I do not quit the program entirely, the app tabs remain as I had originally set them up.
    But when I fully quit firefox. All the app tabs I set up are gone and I have to set them up all over again every time.

    Here's what happened in safe boot mode.
    I click on apple logo > software update > see's that Super Drive 3.0 is checked > click install
    I wait for the install to go through.
    First pop up says " There was a problem installing this update" Quit all apps before installing bla bla bla... I noticed a sound when this pop up appeared. It's the sound of when you restart the macbok. There is another popup behind this saying that software update has been sucessfully installed.
    So what I did first was click "quit" on the popup saying "There was a problem installing this update".
    then I clicked "ok" where it said that the software installation update was successfully installed.
    I get another pop up which is the Software Update window. I let it look for any updates and it then says that my software is up to date. I noticed that Super Drive 3.0 is listed and cannot be checked [x]. There's a Check mark with a green circle around it.
    I quit the software update window and click on apple logo > software update and let it do its thing. Next thing you know, It says that Super Drive 3.0 needs to be updated. I also checked the SERIAL ATA and still shows rev. CP06.
    I just recently installed this mac os X so there is no "important" data on this laptop. I don't have any money for OS Lion or Mavrick nor meet the system req to run it. 2gb to 4gb is expensive for a ddr2 800 200 pin ram

  • My iphone 4 was updated to iOS 5, after update it heat up when you run application and when you call and touchscreen is not working well.

    Can someone please help me to trouble shoot my iPhone 4, where I have updated to iOS 5, and after the update, it started to heat when you run an application, make a call and the touch screen really got so crazy especially on the right part of the screen. It really upsets me updating it to iOS 5. Please I need support on this. Thank you.

    in your iTunes go to Store>Sign out ; then go to Store>Log in and log in under your old Apple ID
    Sync while logged on under the old ID, and everything purchased under that ID will sync.
    Cheers!

  • Iphone 6 plus the battery usage times are erased when you turn off and back on iphone

    i´m desperate. this has already happened with 4 new different iphone. I have it a week ago and suddenly when i turn it on un the morning  i deleted the hours of use and standby battery. I get two hyphens . Reloading up to 100% and the counter is reset. but when you come back off and on again disappears again use times.I restored, reset settings and many other things but can not find the solution. has passed me at least 4 different iphones and the truth is that leads me crazy. someone could help me because in support anyone give me a solution.
    many thanks. you are the only option left for me to discover something so rare and unanswered.
    PD: so if I have observed is that when new and still has not restored works well. I have been working well so far that restored cleanly to put him last update. iphone latter came with 8.1 installed and use it for a week and did not fail. the problem appeared to restore and put him 8.1.1 . others began to fail after restore and do a clean install because it came with the iOS 8 and your so cleanly actualizer 8.1

    i have an iphone 6 plus and i just powered it off and and back on (by using the sleep/wake button) and the slide to power off - usage time/stand by time was preserved
    if you reset and iphone (holding sleep/wake and home buttons until Apple logo appears - you will see those dashes until the next time the iPhone is charged backup to 100% - this has been the behavior with every iPhone i have owned (and Ive owned every one since the original

  • What do you do when you open iTunes and it doesn't respond?

    Hi. What do you do when you open iTunes, but doesn't respond, eventhough you forcequit and open again?

    You can't do much else besides pull the plug. If it causes further problems you should be able to restore as below:
    Get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.
    On the other hand you may be able to simply start the update again. If however the update continues to fail, you should try the restore routine above.

  • When you close Safari and then Reopen it, Shouldn't the Websites/Windows Reopen?

    At least thats what I thought was one of the new things with Lion.
    If you close Safari, and then reopen it, the windows you left open are supposed to re-open.  But thats not happening for me most of the time.  If there are tabs, the tabs still say the name of the websites but the pages themselves are blank.  Other windows are just blank.  Ive tried calling Tech Support in the past and never got a satisfactory response.
    It keeps getting frustrating because I have to manually retype all the URLs to get the pages back.

    I mean quitting Safari with the windows open- not closing the windows.
    I have plenty of bookmarks but dont want to bookmark pages that Im just currently using - and dont necessarily want to go back to all the time.
    I just would like Safari and Lion to work the way its supposed to

  • Why do youtube videos blink when you scroll up and down the page?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/788365]</blockquote><br>
    for some reason out of the blue youtube blinks when I am scrolling on a page while playing a video. I tried deleting the cookies which appears to have worked until I re-logged into my youtube account and any video I watch still blinks. Have any ideas?

    Hello toekneesee, try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for

  • Content of HHK file is not reflected in CHM

    I have created an index using the Smart Index Wizard based on the Topic Title only. After tidying up unwanted keywords, I removed some of the multiple topics linked to some keywords (typically those that can be accessed from other linked topics alrea

  • Sales tax Field in PDF Form

    How do I create a sales tax field when creating a PDF form?

  • No sound after installing windows 8 pro 64bit (macbook pro 2011)

    I installed windows 8 pro edition (64bit) on my mackbook pro and after installtion i run bootcamp 5.0.5.33 everything working find but only sound card not installing i have a red cross sign on my speaker in taskbar. after trying alot of things like r

  • Problem with i_buffer_active in the function module

    i_buffer_active in the function module "REUSE_ALV_FIELDCATALOG_MERGE"   hi folks, i am using this  function module "REUSE_ALV_FIELDCATALOG_MERGE" to develop a field catalog....but teh problem is that when i use this i_buffer_active and if a assign va

  • InfoCube does not want to Compress

    We have an infocube that is not wanting to compress. If I click on the manage button I can see that the request methodology was changed. Some of the requests have that "where used" icon on them in the Column called "data mart status". If I put my mou