Troubles using Thread & repainting components at same time.

Hi. I have a frame which contains several labels. If i clicked on a label, it runs a method which changes label's aspect. Then, i need that once passed a second, label's aspect changes to original aspect. The problem is that controls dont repaint while i use Thread.sleep(1000) method. I have tried to call repaint() (both frame and label) before calling Thread.sleep() but it doesnt work too.
Any idea on how to solve this problem? Thanks for answers :)

Well, it wasnt a layout problem.
I've found solution trough camickr's link. Now im using Timer and TimerTask classes and all is working fine.
Thank you very much :)

Similar Messages

  • Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possi

    Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possible?  Thanks

    Yes. Yes. Yes.
    Mylenium

  • How do i set up a second display for my iMac desktop?  I want to use both displays at the same time.

    how do i set up a second display for my iMac desktop?  I want to use both displays at the same time.  My iMac is the 24" Late 2006 model.  I recall that there is a cord for plugging in a second monitor, but I want to make sure that i can use both monitors side-by-side at the same time.  thank you.

    If the Display supports DVI, then you will need a > Mini-DVI to DVI Adapter and a DVI cable.
    If the Display only supports VGA, then you wiil need a > Mini DVI to VGA Adapter and a VGA cable.
    Noting that the (digital) DVI is far better than the (analog) VGA connection.
    Also see > Using Dual Displays on Mac OS X: The Experience

  • How to use multiple proxies at the same time?

    im planning to use multiple proxies at the same time on mac but i have no idea how to do it?!. i need help!thanks!

  • Can i use two windon at the same time on my i pad

    can i use 2 windon at the same time on my ipad

    If you mean 2 windows like on a windows PC, no you can't.

  • Is it possible to have 2 threads running at the same time?

    Is it possible to have 2 threads running at the same time at different times eg 1 repeats every 20 miliseconds and the other 40 for example. Also could you have 2 run() methods in one script, in one file? If so how? Help soon would be appreciated. Thanks.

    Is it possible to have 2 threads running at the same
    time at different times eg 1 repeats every 20
    miliseconds and the other 40 for example. Yes.
    http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html

  • Hello, Is there a package deal for 2 people to use Creative Cloud tat the same time? (Photoshop, DW, Illustrator, etc) we already have one subscriber.

    Hello, Is there a package deal for 2 people to use Creative Cloud tat the same time? (Photoshop, DW, Illustrator, etc) we already have one subscriber.

    Hi there
    You could either sign up for another individual subscription for the 2nd user, or consider a Teams account which is priced per user - Creative Cloud pricing and membership plans | Adobe Creative Cloud
    Thanks
    Bev

  • Satelitte C55-A Can't Use Keyboard and Mousepad at same time

    How do I change the settings so that I can use them both at the same time? I use them both for all my games, but I can't turn with my mouse pad when im walking with my keyboard keys (W,A,S,D). Does anyone know how to change this?
    I'm on Windows 8 btw.
    Thanks,
    -Evan

    There should be a setting for that in Mouse Properties, Evan. Something like "Disable touchpad while typing."
    Also, it's a "feature" of Windows 8.1.
       Button clicks for internal touchpads and pointing sticks are not responsive while or shortly after t...
    Windows 8.1 introduces a feature that is called accidental activation prevention (AAP). AAP helps ensure that unintended taps while you type on an integrated touchpad are suppressed. When this feature is enabled, taps and clicks from an integrated touchpad or pointing stick are suppressed for a while after the last keystroke..
    -Jerry

  • Will my whole itunes library be transferred to my new computer with home sharing,in other words will I be able to use bothe computers at the same time ? And will I have two copies of my all my playlists?

    Will my whole itunes library be transferred to my new computer with home sharing,in other words will I be able to use bothe computers at the same time ? And will I have two copies of my all my playlists?

    Hi there J1750oe,
    You may find the information in the article below helpful.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Transferring playlists
    If you want not only your content but also your playlists to exist on your new computer, you will want to transfer a copy of all your playlists from your old computer. To do this, choose File > Library > Export Library on your old computer. Save the XML file that is created to your desktop.
    Send the playlists file to yourself as an e-mail attachment, use an external drive, or use file sharing to move the playlists file to your new computer. Once the file is on your new computer, open iTunes and choose File > Library > Import Playlist. The import process will remove any items from the playlists that you didn't share via Home Sharing.
    -Griff W. 

  • Can you stream video and use the computer at the same time on a mac mini with hdmi

    Can you steam video and use the computer at the same time? I have a mac mini with hdmi.

    Shouldn't be a problem, unless you want to view it in Full Screen Mode at the same time with only one display.

  • Using multi-threading: Setting a VI to be used for two sequences at same time

    I have two sequences running as two different threads. This is supposed to be in parallel but both sequences access the same VI, then they're not executing as parallel because one sequence use this VI then liberates it and the other sequence use it, and so on consecutively until both sequences finish. This is not what I want.
    How can I do to set this VI with any kind of property or something that can be accessed for both sequences at the same time?
    Thanks,

    Hi Margarita, you can set a VI to be reentrant (under VI Setup»Execution Options from TestStand, this function can also be used from LabVIEW) . Now depending on the king of VI you are using this can be something safe or can cause trouble. If the VI needs to keep information (for example a Functional Global Variable) or it is handling Hardware it can give you errors (for example trying to access the same DAQ at the same time from different task.
    If you need more information can you tell us what does this VI does?
    This Links might also be useful:
    When I Run Parallel TestStand Executions That Call the Same VI, Why Don't the VIs Run in Parallel?
    Differences Between Reentrant VIs (Preallocate), Reentrant VIs (Share Clones), VI Templates, and Dyn...
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Streaming from ipod/ipad to ATV2 interrupted when using other apps at the same time.

    Hi.  I have an Apple TV2, ipad1 and ipod touch4.  I am having trouble with music streaming to the ATV2.  I can select a song on the ipad/itouch and stream it to the ATV2 no problem using airplay.  However, if I then try to surf the net on the ipad/itouch or use any other app at the same time as listening to the music, the music hiccups.  It seems to me like the ipad/itouch need to use the wifi network at the same time and so they take over the signal momentarily.  Any ideas what I can do about this?  My wireless router is a dual band 2.4 and 5 mhz gigabit router that is brand new and should not have any problems.
    Thanks
    Julia

    Ferrell, I have done what you suggested. I clicked onto the Spaces icon in the upper control panel and assigned spaces to six apps: Mail, Safari, iPhoto, iMovie, Pages, and iWeb.
    The problem is that if I am one app and I want to put something into that app, then the minute my mouse cursor goes to get that other thing, the original application into which I want the thing put GETS WHOOSHED OFF THE DESKTOP. What I want is for the original app to remain open whilst I go to retrieve a file or folder, and stay open while I put that thing into the original app.
    How does one turn off Spaces? I don't mean to delete all the names from the settings.I mean, just turn it off for a while so I can do something which requires for two apps to be open at the same time????
    ~ Lorna in Southern California

  • How to use multiple languages at the same time for spell checking?

    I use two different languages all the time and words are mostly so different (English and Finnish) that I could have spell checking on for both languages at the same time.
    Now it seem to allow to select only one language at the time and I have to switch back and fort zillion of times per day.

    Thanks for the quick answer.
    The Dictionary Switcher doesn't seem to work with Finnish language, it doesn't detect it at all to be one of the choices although in the Firefox context menu Languages -> Finnish/Finland is shown.
    Also, if it would work, I would need to get rid of multiple EN_* langauges. I just need EN_UK or EN_US, not all 22 different EN_*.
    One option would be to create a custom dictionary, which would have words from both languages. The next task is then to find out how to make this kind of custom ENFI-dictionary, which would have words from both English and Finnish languages.
    Finnish may be a some kind of special case for spell checking anyway, because the support is in its separate plugin:
    http://voikko.sourceforge.net/

  • Is there a way I can stream video from my 2012 AirMac to the Apple TV using airplay and at the same time stream the audio to an air speaker?

    Is there a way stream video from a 2012 MacBook Air to a TV using Apple TV and at the same time steam the audio to an air speaker. Also the same question but using an ipad

    You can try one thing. Follow these steps:
    1. On your Mac, turn on AirPlay Mirroring and connect it to the Apple TV, so audio and video will stream from the Apple TV.
    2. Turn off the sound of the TV where you have connected the Apple TV.
    3. Then, make sure that you have turned on the AirPlay speakers. Then, open System Preferences > Sound > Output, and choose the external speakers, so sound will stream from these external speakers.
    This should work correctly

  • How can I use two ports in the same time?

    My application need one pc use two ports the same time.But when I open one port and my systerm is running the other port can't be opened.
    I use the frame API in VC++6.0.
    My OS is win2000 server;
    The functions I used are ncOpenObject();

    Hi DickW
    Thank you for your help!
    I have tried the example.But the example shows how to connect one CAN network with two ports.
    I want each port connect to the net can both read and write;
    I want to apply the function like this:
    1.config the port1 and port2
    2,open port1 and port2
    But after I open port1 or port2 the other port can't be opened;
    After I open the second port it always returns negative.
    In the codes I use CAN0 and CAN1 as the CAN objects.
    Attachments:
    twoport.zip ‏1184 KB

Maybe you are looking for

  • Changing font / appearance of Fill-in-the-blank questions

    1) I am using a Fill-in-the-blank question. I can change the font of the name and the description, but not of the Blank Answers themselves. I figure this should be possible, since these are basically text entry boxes (or drop down lists if you select

  • I accidentally Deleted the Mac app store from my computer. How can I get it back?

    I accidentally Deleted the Mac app store from my computer. How can I get it back?

  • Mail or gmail? why should i switch?

    so i'm a recent switcher. i'm happy happy happy with the things about macos that enable much greater productivity and pleasure when interacting with my little macbook. so the reason to switch from PC to MAC is very clear. i can easily talk to others

  • Unexpected Quit Indesign & Photoshop CS2

    Random quits multiple times per hour. Have yet to figure a common scenario. Would like to upload crash log for most current Indesign quit. Can anyone assist me in this? 10.4.11, 2.4 GHz Intel Core 2 Duo, 2GB RAM, IMAC Please help.

  • IMac 27" AMD Radeon HD 6970M 2048 MB - Video Problems

    I just got a brand new iMac 27" and am having issues with my video.  The last iMac I bought had video issues, and a couple months after owning it, Apple/AMD fixed the driver issue and it worked fine.   However, this video issue happens within 5 minut