Who knows why the "repaint()"doesn't work when ....?

I use a "while(threadgroup.activeCount()!=0){} "to block the sentence below
from being excecuted before I finish the thread above, however since this "while"
the repaint() in the thread above doesn't work , but I have evidence that the thread
is really going on ( I use Sytem.out.print() to prove this)

I'm not sure I follow. Try providing a snippet of the relevant code, and we'll see if anybody on the forum can figure it out for you.

Similar Messages

  • Help!(confused face) I'm new with flash and don't know why the timers don't work like i would expect

    I'm new with flash and don't know why the timers don't work like i would expect.  In VB.NET timers are how you move stuff, but it doesn't look like they are ideal for moving stuff in flash at all (really slow).  I'm making a game in which you throw a ball around the screen. i am using a timer to get the ball to move. this doesn't work well for 2 reasons; 1: the ball jumps alot, and 2: the timer should eventually run out of time.  If anyone can help, i'd be thrilled cus this is my first post here, so yeah

    Timing for movement would be more often dealt with using something that operates at the frame rate of the file.  The ENTER_FRAME event is usually selected for this purpose.
    stage.addEventListener(Event.ENTER_FRAME, moveBall);
    function moveBall(evt:Event):void {
         // your positioning code
    You could use a Timer to control when to stop the listener from being active.

  • Why the preloader doesn't work in IE 8 but works in FireFox?

    Why the preloader doesn't work in IE 8 but works in FireFox?
    Please see the attached files.  Thanks in advance.

    Why doesn't the preloader work in IE8?
    What's "virtual sandbox"?

  • Why the imsg doesn't work without a sim card with iOS 7???

    Why the imsg doesn't work without a sim card with iOS 7???

    If it worked for you using iOS 6, then it appears iOS 7 has made some changes.  Was it working before?

  • Hi there, i have a ipod nano general 7, just used one year. Now can't charge battery. When charging, the icon shows full power, but disconnect it. It becomes dark, no power. Why, the battery doesn't work ?

    I've a ipod nano general 7, I've just used it one year. Now, I can't charge the battery. When charging, the icon shows full power. But when I disconnect, the ipod becomes dark, no power is keeped. Why, the battery doesn't work ? the life of my ipod's battery is too short ? 

    Howdy tamsg,
    Welcome to Apple Support Communities.
    The article linked below provides a lot of great troubleshooting tips that can help you resolve the issue with your iPod nano charging or displaying a blank black screen.
    iPod nano (7th generation): Hardware troubleshooting - Apple Support
    So long,
    -Jason

  • Why the alarm dosn't work when the iphone off?

    why the alarm dosn't work when the iphone off?i make alarm then i switch the phone off .but the alarm didn't work .in the past nokia phones it was work

    "Standby" (or "Sleep" is the phone's normal state when not in use. "Off" is when the phone is totally shut down by holding down the Sleep button the doing the "Slide to Power Off" on the screen.
    If you believe it is dangerous to be in the same room as an iPhone, your question is pointless. I suggest you invest in a clockwork alarm clock.

  • Why the wifi doesn't work after the upgrade to iOS 5?

    The problem is that after the upgrade to iOS 5 the wifi doesn't work. I mean, iPad is connected to the wifi but not to the internet and also the connection on the other device doesn't work. So I had to turn off the router and then turn it on.

    Try a hard reset first to see if that does any good.  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    If no luck with that, you'll need to manually connect your iPod to your iTUnes library in recovery mode using the instructions in the Apple support document below. Doing so will allow you to bypass the passcode and restore the iPod.
    iOS: Unable to update or restore
    B-rock

  • Sometimes my screen starts to move on my iMac.    It's like it's trying to turn the page and it gets off center and the mouse doesn't work when it happens.  It usually lasts about 15 seconds or so and happens often.

    Sometimes the screen on my imac starts to shake like it it trying to "go to the next page".   When this happens it usually freezes up for 15 seconds or so and the mouse doesn't work.

    Have you tried a hard reset of the iPod to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. 
    Otherwise, work through each of the troubleshooting suggestions in this Apple support document as necessary.
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • Why the style doesn't work?

    It's my very second test using Flex.
    quote:
    <mx:Application ...>
    <mx:Style>
    Text{
    backgroundColor:#FFFFFF;
    </mx:Style>
    <mx:HBox>
    <mx:Text />
    </mx:HBox> ...
    </mx:Application>
    This code doesn't work. I'd like to set my text control's
    background to white. Why is it wrong?
    Thanks.

    Because mx:Text does not have a backgroundColor
    style/property.
    Tracy

  • Why the code doesn't work???

    addWindowListener(new WindowAdapter(){public void windowClosing(){System.exit(0);}});
    when I press the x button ,it doesn't work as expected!!

    What are you expecting it to do? I should close the window and then exit the application. This is the code I use for all my applications and it does exactally that. Are you using it with a JFrame? or a JDialog?
    JFrame test = new JFrame();
    test.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent evt) {
                    System.exit(0);

  • HT1355 i need to know why my facetime will only work when im connected to wifi.

    i need to know why facetime will only work when connected to wifi.

    Facetime in cellular will only work on the iPhone 4S and iPhone 5, and only if the carrier supports it.

  • Bottom 1/4 inch of the screen doesn't work when it's hold upright

    As said in the title, when the ipod is hold upright, like this | the volume controll doesn't work, same for the keyboard when it's used for typing.
    However, if I use safari, and I want to switch to another page, the bottom half does work... Strrrange eh?
    I'm quite sure it hasn't got anything to do with the screen itself, because sometimes, like 20h later it suddenly does work again!
    And oh, video didn't work once for a few days, all red and green blurry thingies occured on the screen. Also on youtube vids. When I connected it to itunes because I wanted to remove pics agenda because I wanted to return it to the store... IT WORKED AGAIN..
    I'm quite sick of it now, does anyone know what to do now?
    Kind regards, janwillem
    Oh yea, when I hold it horizontal, then the side 1/4inch does work on websites and all...
    Message was edited by: janwillem

    Replacing an item that is malfunctioning because of a manufacturing error is the bare minimum I would expect from customer service for any electronics item.
    The thing Apple does extremely well is their flat fee policy for repairs on their computers.
    I managed to break my MacBook pretty seriously (logic board needed to be replaced) and I'm sure it cost them more to repair the unit than the $328 they charged me.
    I probably would have been angry if it was something minor, but I'm guessing that most repairs to screens/motherboards/etc cost more than their flat fees.

  • I have an Iphone4 and recently bought a car that has bluetooth. The bluetooth doesn't work when I tell it a name to call. Has anyone else had this problem?

    I have a iphone4 and recently bought a car that has bluetooth. When I tell it a name to call it doesn't work. If I tell it the phone # it works. Has anyone had this trouble and how can I fix it?

    pae59 wrote:
    I have a iphone4 and recently bought a car that has bluetooth. When I tell it a name to call it doesn't work. If I tell it the phone # it works. Has anyone had this trouble and how can I fix it?
    In most cars with built-in BT hands-free systems it is the car's system that does the speech to text conversion and lookup, not the phone's. so there's nothing that can be done in an iPhone forum to help you. Try the customer support site for the car. You can tell it's the car system if the contact list is downloaded to the car and displayed on the car's screen (if it has one).

  • The display doesn't work when phone is locked

    My z3 is abt 6 months old
    Recently I locked my phone and tried unlocking it but the screen never turned on though I can see the screen lighting up a bluish colour but the display doesn't appear.
    I have to swith off the phone for around half an hour and restart for it to work.
    Any idea why

    Try repairing your phone with Sony PC Companion
    Sony PC Companion.
    http://support.sonymobile.com/us/tools/pc-companion/

  • On my iPod touch 4th gen the touchscreen doesn't work when I go to my music.  Why is this and how can I stop it?

    This is driving me crazy!!  I think this may be happening becaues sometimes when I put my iPod into my iHome, the iPod says it is temporarily unavailible becaue it is over heated and has to cool down.  I stopped putting it in my iHome right away but I'm curious if the touch screen is still not going to work on my music!
    EXTRA:
    *After I turn my iPod off and on again, the touchscreen starts back up.
    *This has happened two times.

    Hi,
    Try doing a FULL restore of your device and then put everything back on it. Tell me if this works.
    xxmitchxx90

Maybe you are looking for

  • ITunes install 10.6.3 freezes on MBP (but not on iMac)

    The installation of the iTunes update 10.6.3 on my iMac Mac OS X (10.7.4), 2011, 27", i7, SSD ran without problems But After trying to install iTunes 10.6.3, I get all kinds of strange problems on my MBP 10.7.4 2011, i7, SSD Almost all programs I use

  • What is the BAPI or FM that returns figures as seen on Txn MMBE ?

    Hello friends, I have to create a custom report that shows some of the figures as seen on Txn MMBE.   So may I know which BAPI or Function Module to use for getting figures like MMBE ? Thanks, - Chetan PS: I searched this forum, but the earlier respo

  • How can I migrate my complete data from E71 to N)

    I have an E71 and bought a N9. I'd like to migrate all my data (contacts, SMS, pictures, notes) from E71 to N9 before I actually start to use it. Are there any tips how to do that? Solved! Go to Solution.

  • After Effects crashing on start on Mac OSX v10.9.4

    I too am having the problem that running on a Mac Pro with OS X 10.9.4, AE CS6 crashes on initialization. I updated to AE CS 11.0.4, restarted, and continue to have the same problem. Is anyone else experiencing this?

  • Complete My Album feature not working

    The "Complete My Album" feature on the iTunes store is not working when I get to the final step of actually trying to purchase the rest of the album at the reduced price.  On the home page of the iTunes store, I click on the "Complete My Album" link