Knowing when repainting has finished

Hello,
I want to perform an action immediatley after repainting a Panel is finished (and not during repainting).
Is there a method that I can call which tells me when the repainting of a component has finished?
Thanks

If you are currently repainting and want something to be called when repainting is done, you can use SwingUtilities.invokeLater(...)

Similar Messages

  • Need to know when text has finished loading

    The following code loades text into a textfield the problem I'm having is the routine at the bottom runs before the text loads and the scrollbar disappears even when there's enough text to overflow the textfield.  How would I make sure the text has finished loading before running the code that enables/disables the scrollbar?
    mainText.htmlText = main[1];
    textFieldLength = mainText.text.length;
        if(mainText.length > textFieldLength){
            mainScroll._visible = true;
        }else{
            mainScroll._visible = false;

    I messed up the example.  All I really need to know is how can I determin when a dynamically textfield overflows.

  • I am using a WD external hard drive for backing up my laptop with Time Machine, but I have to do it manually. How do I know when it has finished the back up? How long should it take?

    I am using an external WD hard drive for backing up my laptop. I have to do it manually, so I can't set Time Machine to just do it for me. How do I know when it is done backing up? How long should this take?

    Triple-click anywhere in the line below to select it:
    tmutil compare -E
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command will take at least a few minutes to run. Eventually some lines of output will appear below what you entered.
    Each line that begins with a plus sign (“+”) represents a file that has been added to the source volume since the last snapshot was taken. These files have not been backed up yet.
    Each line that begins with an exclamation point (“!”) represents a file that has changed on the source volume. These files have been backed up, but not in their present state.
    Each line that begins with a minus sign (“-“) represents a file that has been removed from the source volume.
    At the end of the output, you’ll get some lines like the following:
    Added:
    Removed:
    Changed:
    These lines show the total amount of data added, removed, or changed on the source(s) since the last snapshot.

  • Edit in Progress how do I get out or know when it is finished??

    I have just read a plea from some-one which sounds exactly like my problem.  I could never get on with Photoshop Elements 8 so I thought that when version 11 came out it would be simpler...not to me I still have problems with the edit in progress...how do I know when it is finished and how do I get out of screens when I have finished???I have bought the book...got the latest version...have old CD's from my last attempts...but I am still battling with it.
    Picasa on the other hand is great  obviously not as comprehensive...maybe I should have just stuck to that instead of spending money I could ill afford.
    Pensioner...but no that is not the reason   (Ihope)

    When you finish in the Editor, save your work; then click Ctrl+W or use the top menu:
    File >> Close

  • First boot of local zone - how to determine when sysidtool has finished

    Hello,
    we use a /etc/sysidcfg in order to do the solaris base configuration automatically. After the first boot of a local zone I recognized that some tools are started by solaris (sysidtool, etc.) which apply the settings mentioned in /etc/sysconfig.
    Since we want to script some post-install set-ups I need to know, when the first boot including all "first-boot-scripts" has completely finished. Is it possible to query this information, maybe by calliing a special tool or by looking up some string within an logfile?
    I would be grateful for any hints,
    Thomas

    I haven't checked, but I assume they have normal dependencies in the SMF tree so that other services don't start until they complete.
    I would probably look at the milestone/multi-user-server service and see if it's online yet. If it is, they're probably done.
    Darren

  • HT1212 how will i know when ipad has been restored?

    I am trying to restore my ipad.  Itunes has finished downloading the update.  how will i know when the ipad has been restored?

    It has given me an error 3194 - this device is not eligible for the requested build.  What now?

  • How to determine the correct moment when Word has finished to write to a docx file

    Hello,
    we are currently passing a document to Microsoft Word for editing and want to take back the changed/saved document when editing is finished. But it seems we have issues to determine the correct moment when Word has for sure saved all changes and
    it is save to take back the file.
    To pass the document to Word we use ShellExecuteEx with the file name. Then we use the Running Objects Table and a File Moniker to wait for the file to be closed.
    Sample code:
    HRESULT hRes = S_OK; 
    CComPtr<IMoniker> spIMoniker; 
    CComPtr<IRunningObjectTable> pRT; 
    hRes = GetRunningObjectTable(0, &pRT); 
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("GetRunningObjectTable failed."));
    hRes = ::CreateFileMoniker(m_strTempFilename.AllocSysString(), &spIMoniker);
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("CreateFileMoniker failed."));
    while (S_OK == pRT->IsRunning(spIMoniker) && !m_bShutdown)
       Sleep(500);
       continue;
    So we wait for the file to be removed from the Running Objects Table and additionally wait until we can get exclusive access to the file before we take over the changed file. But still it seems to happen that we take the file too early. Hence it
    seems the file is removed from the Running Objects Table by Microsoft Word before saving the file has completed.
    Is this behaviour of Microsoft Word by design? What is the best practice to identify the moment in time when writing the file has completed. Some other applications like Winzip seem to do the same thing.
    Thanks,
    Wolfgang

    Hi WolfGang,
    Thanks for posting in MSDN forum.
    Based on the description, you are developing application with Windows API. I would like to move it to
    General Windows Desktop Development Issues forum.
    The reason why we recommend posting appropriately is you will get the mostqualified pool of respondents, and other partners who read the forums regularly can either share their knowledge
    or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Determine when httpservice has finished loading

    Hi, I have a little dilema, I get the list of countries for a
    form I have, from a database, but I can't set the selectedindex
    because of it's delay loading the data, is there any way to know
    when the loading of data is complete and execute a function
    then?

    When you define your service request put a result handler in
    there. Flex will call your result handler when it's finished.

  • If my iPad is lost, how do I know when it has been removed from my Apple ID account?

    I lost my son's iPad this afternoon. By the time I realized I couldn't find it and pulled out my phone to use the Find Phone My iPhone app, it may have been too late to set it up as lost. The iPad is still displaying in the app, but simply as offline. Of course, the iPad could be laying on the street somewhere, God only knows. However, if someone had reset the iPad and logged it into their own account, would it still display on my "Find My iPhone" account even if it were offline? Or, since they can reset it without being online, will it wait to refresh until they get it online? I am literally sick to my stomach, I just bought this 64 gig brand new mini two months ago for my autistic son, and he uses it daily. I cannot fathom the idea that it is not in the house, but if it were in the house, it would be connected to our Wifi automatically, and it would not be dead because I just charged it for him for our short trip today. How can I see if the seriel number is even still on my account? When I go into my account, it shows a white mini ipad, ours is black, and it does not show the same seriel number. HOWEVER, it does show that I called about the Mini on the 29th of October, so even though it is displaying as white with a randomly different seriel number, I did call about an issue on that device. Why would iTunes have a different mini seriel number set up under our account? If you cannot tell, I am freaking out. We're out $500 and I feel like there just has to be a way to get our iPad back. (Just for all of you KARMA beleivers out there: About a year and a few months ago, I was at the pool with my son and found a Kindle Fire. I immediately went through to find the owners information and contacted her to return it! There has to be good Karma for me in this situation!! ;-)  )   Please, help me determine if the iPad is still connected to my account! Anything! Thanks!

    I think you may need to book an appointment with a genius! They will fix it or replace it for you, for free!!! You can book an appointment at your local apple store at http://www.apple.com/retail
    Hope this helps
    Conchuir

  • Displaying a notification when workflow has finished

    I implemented a workflow, which works quite fine. Now, when a user runs the workflow, is there already a mechanism which shows a notification, that the workflow ran successfully. I know about CQ.Notification, but not if there is already an API which allows to hook into the client library and show a notificaton when the triggered workflow is finished.
    Is there somethig already?

    Hi,
    you can have one more in last of your workflow. Last step will be using cq5 email sending implementation process. once workflow is done all execution, notification step will be executed.
    thanks,
    jitendra
    Intelligrape India

  • [Flex 4] How to know when ButtonBar has created all of it's elements by the data provided?

    As you know, specifying dataProvider for the ButtonBar for example doesn't mean that all of those buttons are already there, since they first need to be created.
    So I would like to ask what techniques I could use to determine if all of those buttons are created?
    I am using callLater(function) right now after I set the dataProvider to the ButtonBar. Is this the best way to do that or I could listen for some event?
    I cannot listen for ButtonBar CREATION_COMPLETE since it's data is populated after it has been already created.
    I am open for suggestions Thanks!

    Hi,
    below you can find an example of my technique to get buttons as soon as possible:
    private function someButtonBar_initializeHandler(event : Event) : void
                    someButtonBar.dataProvider = someButtonsArray;
                    // force the button bar to create children:
                    someButtonBar.validateNow();
                   // now you can safely access and remember references to buttons without any callLater method call:
                   addButton = ButtonBarButton(someButtonBar.getChildAt(0));
                   removeButton = ButtonBarButton(someButtonBar.getChildAt(1));
    The function is an event handler triggered for "initialize" event.
    Regards,
    Robert

  • How to know when ListView finished rendering elements?

    I have a ListView with many items inside.
    After I assign the ListView an ItemsSource, I need to know when all items finished rendering on my page.
    I can just nothing with my eyes it takes like 2 seconds to render all elements, and I need to subscribe to an event like "ListView.RenderingCompleted", because I can proceed with other operations after all elements are rendered and
    visible to the user ( meanwhile I can show a loading bar ).
    I cannot find something similar, how can I do that?

    >>I need to know when all items finished rendering on my page.
    I am afraid there is "all containers generated" event.
    The ListView uses UI virtualization so visual containers are only created for the currently visible items, i.e. not all the containers will be created at once.
    You could handle the Loaded event of the root item in the ItemTemplate to know when each individual container is ready for interaction:
    <ListView x:Name="listview" Height="200">
    <ListView.ItemTemplate>
    <DataTemplate>
    <Grid Loaded="grid_Loaded">
    <TextBlock Text="{Binding}"></TextBlock>
    </Grid>
    </DataTemplate>
    </ListView.ItemTemplate>
    </ListView>
    If you know the approximate number of items you can then for example write some code in the code-behind that hides the loading bar when a certain number of Loaded events has been raised.
    Or you could possibly handle the Loaded event of the ListView. The Loaded event occurs when the element has been constructed, added to the visual tree and is ready for interaction.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • Determining when Loader is finished loading

    How can I determine when myLoader has finished loading all
    the thumbnail images loaded into it using XML. The
    contentLoaderInfo 'complete' event fires every time an image is
    loaded in. I need to know when all the images have completely
    finished loaded. Ultimately I need to trace the 'height' property
    of myLoader's parent container_mc. I keep getting '0' as a result.
    Thank you!

    What I would do - is build your array of elements (push) an
    element on the array for every Image you have to load. Then all of
    your Image Loader COMPLETE events should be directed at one
    function. This function should just increment a counter. In this
    function it should then say if counter >= array.length then all
    is loaded and we can resize the element(s) or find out their real
    dimensions.

  • Knowing when the input on aJFormattedTextField is done

    I'd like to know when the user finished entering the data to a FormattedTextField. by finished I mean that the user has entered all the letters that he could, according to the format (i.e. on zip code format ##### after 5 digits the user is done).
    i'd like to move the focus automaticly to the next field.

    basicly you can add a KeyListener to it. in its keyTyped, keyPressed, or keyReleased method you can check if the length is reached and then you can change the focus manually to the next component.
    but this "solution" means that you have to implement many key-listeners (one for each textfield).
    regards Errraddicator

  • Subcon - how to know if stock has transferred in "subconvendor 2 " location

    Dear All,
    see this scenario :
    your factory sends subcon rawmaterials to subconvendor1 for machining and the FG obtained  is moved to subconvendor 2 for polishing . then this FG returns to your factory .
    please let me know how this can be carried out in sap , and also how do we come to know when subconvendor1 has delivered the FG to subconvendor 2 ?
    Rohan

    Dear Kamble,
    You can see the stock at Subcontractor by MBLB from that you can get the information whether material issued to subcontractor or not. for tracking Material transfer fron Subcon1 to Subcon 2 first you have to tack the material back from Subcon 1 and issue to Subcon 2.

Maybe you are looking for

  • Custom tag - setProperties() not called

    Hi all, I've created my first custom tag with it's own component class, Tag Class, Renderer and TLD. However, when the JSP first loads, the encode() method fails in trying to get the attribute values from the attribute Map - the Map is empty. Upon fu

  • Open CC applications to default preferences with no user input

    I am searching for a way to open CC applications to default preferences with no user input. I understand there is a key board short cut (command/option/shift on start) but I am hunting for a way to have the preferences always revert to default. In th

  • ALUI 6.1 Search Server, Filling in the operational gaps

    The topic is Search Server 6.1 running on ALUI 6.1MP1 or MP2.. The <root>/ptsearchserver/6.1/cluster/requests folder contains a number of folders each uniquely numbered. In these folders are timestamped files with ".delta" ext. We have all these file

  • Unable to configure Shared Services

    Hi All, I am trying to install 9.3.1 on windows 2003 server, Using Sql server 2000. I installed Shared Services, When I try to configure the database and Deploy the Application Server its trowing the following error: "Unable to connect to the databas

  • How to link or call two FIELD EXIT

    Hi Friends, I've to do a Field exit object for MIGO...and my logic is i've to capture the meory id concept by Export and Import function.So, I heard that I've to create one field exit with Export function and again create under one more field exit to