When is change completed..

If I add a ComponentListener to a component the ComponentEvent is fired all through the changing (e.g resizing) of the component (e.g thru mouse drag). The problem is that if I want to call some custom code based on the ComponentEvent it would get called repeatedly in the present scenario. I want to know if there is a way to know when the last ComponentEvent was fired so that I call the custom code only after the component change is completed. Any ideas would be appreciated.
I have similar issues with DocumentListener too.

To detect the "last event" implies that you know that the event is part of a series of events. If that's the case then there'll be an event to denote that last event. For drag operations there're such events provided. For component events there aren't.
All I can suggest is that your component knows whether it is still being dragged, resized etc. if it is handling that itself. Your event code simply needs to ask the component whether it is or not.

Similar Messages

  • TS4268 Facetime was normally working on my iphone 4S, but when i changed my sim card it completely disappeared (ot even in settings)

    Facetime was normally working on my iphone 4S, but when i changed my sim card it completely disappeared (not even in settings).

    Hi
    I am also having the same problem. I purchased the iphone 5s (Unlocked) from kuwait. I can use the facetime in my zain sim (kuwait sim) when i change the sim in srilanka (Carrier Dialog) the face time app completely disappears. but in roaming for kuwait sim it works perfectly. before i have purchased iphone 4s from kuwait and it has facetime even in srilanka(carrier Dialog).
    Is there any issue with the apple software for 5s? becoz till today no one is able to answer this query?
    I hopefully expect a solid answer here....

  • The icon when i change the volume up or down is no longer the beats logo, it is a simple megaphone.

    1. HP Pavilion m6 Notebook PC
    2. Windows 7 64 bit
    3. none
    4. I accidentally deleted IDT Audio, i was trying to get rid of programs that i didnt need, i didnt know this controlled beats.
    i noticed that my Beats Audio Control Panel was gone and i searched online and found out i needed to re-download IDT, so i did. Beats Audio Control Panel is now back but when i change the volume up, down, or off, it shows an ugly little megaphone icon and ugly little white bars, instead of the shiny silver beats logo and the silver bars.  I hate the new logo with the mega phone how can i get the beats logo back?
    i tried a system restore from before i uninstalled IDT but it still has the same problem.
    Please reply with any ideas

    Hi,
    Try reinstalling the HP OSD Utility on the following link.
    http://ftp.hp.com/pub/softpaq/sp55001-55500/sp55152.exe
    After this has completed, restart the notebook.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HP LaserJet 3330 shows horizontal lines exactly every 1.5" when printing a completely white page

    HP LaserJet 3330 shows seven or eight  about 3.5" long cloudy horizontal lines spaced exactly every 1.5" even when printing a completely white page. This occurs also when copying and faxing. 
    There are also 2 very thin vertical lines running down the whole page approx. in the middle. They are exactly 1" apart.
    However, a scan of a white page viewed on my computer (not printed) is completely clean.
    Windows 7. No changes or upgrades.
    This question was solved.
    View Solution.

    Propbably the toner cartridge if they are 1.48" apart it could be the developing cylinder or the charging roller that are both in the toner cartridge. So a good guess if you replace the toner cartridge, the problem will go away. The vertical lines could also be part of this issue.

  • When i change name of artist it automatically reverts it to original.

    When I change the name of an artist, in my case, its the blow soundtrack. The artist is currently called sountrack, and i try and change it to blow. But when i double click it to listen to it, it plays but the name changes back to soundtrack. This has only ever happened with this album. Could it be right protected? The actual mp3 file was not, and i deselected the organise my itunes library to see if it made a difference but it didnt. any suggestions?? Thanks!
    dan

    Hi Daniel,
    sometimes mp3 files are slightly damaged; not to a point where they are completely corrupted but they might have "issues". In cases where I had trouble renaming a song I had always great success with the analyse and repair function of MP3Trimmer. It's a shareware but with quite usable free features.
    -Petra

  • Condition value not updated when qty changed

    hi all,
    I have created a new condition ZPR1 (copied from PR00) and use a new formula for it.
    There is a problem when I change the qty after the item is billed.
    Suppose the original qty is 1 and total ZPR1 price is 100. When I change the qty to 2, the ZPR1 price is still 100! It will change to 200 if the item is not billed.
    Anybody encounters such problem and how to solve?
    Thanks

    Hi,
    I don't mean to change the unit price.
    I mean the condition value (the item total price) is not updated
    You can't change the price anymore in the condition tab after you billed
    But when you change the qty of the item, the total value should change accordingly
    And I think for my case I should not cancel the invoice. Suppose original qty is 10, and there is partial shipment of 7 and billed the customer. Later customer request to reduce the qty to 7 to complete the item. We should not cancel the invoice in this case.
    Try to test with PR00 and PN00, you will see the item value will be changed according to the item qty.

  • Cannot have execute_query in post-change but can have it when-radio-changed

    why is it possible to put execute_query in a when-radio-changed trigger but one cannot put it in
    a post-change or post-text-item trigger? (11.1.1.4)
    For example I want to ask for a year, and a month. I don't much feel like creating radio items for all those years. Whenever a year
    or a month is changed I want it to reconstruct the where clause and execute the query. But the year not being a radio group
    is more problematic about how to get execute_query to run. What is thinking here? I think that a text item post-change deserves as much power as a radio_group change! It's unfair.

    Over the years, I have found that the people that complain about Oracle Forms the most are the people that refuse to learn how Oracle Forms works. You can't expect to develop in a any framework unless you learn the rules of the framework. I've seen numerous complaints about the lack of documentation on Forms and yet the single most important form of documentation is the Oracle Forms Help system. The answer to virtually every question you might have can be found in the Forms help system, but it helps to understand a little about how Forms functions so you can ask the right questions in the help system.
    I also find it hard to understand how an employer will throw someone, with little or no exposure to Oracle Forms, into a Forms project and expect them to "Pick it up" along the way rather than take the time and expense to send them to an Oracle Forms class. How can the employer expect the employee to be successful if they are unwilling to give them the resources they need to be successful. If you are one of the unfortunates that are in this situation, then you could at least perform a simple Google search on "Forms Tutorials" and you will find numerous on-line "Free" tutorials. Don't worry about the Forms version used by these tutorials as you are only going through the tutorial to learn how to create a Form and how the Forms tool interacts with the database; which is doesn't matter which Forms version you are using because this part hasn't changed all that much between the Forms versions.
    There are even some really good books (however, quite old) that you can purchase that teach you all the basics of Oracle Forms. Here are just a few:
    Developing Oracle Forms Applications by Albert Lulushi
    Oracle Forms Developer's Handbook by Albert Lulushi
    Oracle Developer: Advanced Forms and Reports by Peter Koletske
    Programming with Oracle Developer by Matthew BennettThese are just a few books and yes they are all for older versions of Oracle Forms. But the concepts you will learn apply to any Forms version.
    While I admit that it is inconvenient that I can't call a Restricted built-in from certain triggers once you understand the reasons why you can't call Restricted built-ins it make sense why Oracle built their event model the way they did. By calling certain restricted built-ins in a trigger, such as the When-Validate-Item trigger, you could very easily cause an an endless loop to occur in your application. For example, if you were allowed to call the GO_BLOCK or GO_ITEM built-ins from a When-Validate-Item trigger you could cause cascading validation events to occur. While this is not a bad thing in and of itself, but what would happen if I sent the Forms Navigation cursor to go to an item before I had completed my validation logic. The item I sent the cursor too also happens to have validation logic assigned to it that just so happens to send the navigation cursor to the item I just left. Understand, the first item has not yet completed it's validation process and the second item sends the cursor right back the first item - which triggers a new validation event on the first item. Now I've got compounding events in the execution stack and I've put my application into a loop that I will never get out of because I've got validation logic that never completes successfully so the validation event never exits - it just keeps running and running.
    At first, you might say that it is the developers responsibility to ensure this does not happen and the developer should be more careful with their code to prevent this from happening and you would be right. We (developers) are responsible for writing safe code. However, after a while, software manufacturers eventually put restrictions in place because there are enough irresponsible developers out there causing problems and the only way to fix the issue is through the use of framework restrictions.
    Having said that, Oracle Forms has certain restrictions for good reasons. Because you don't understand what those reasons are is not a good reason to complain about the restrictions. Rather, I would hope, that your lack of understanding of a particular framework/methodology would encourage you discover the "Why's" and "How come's" of the framework.
    The simple fact of the matter is you cannot be successful with Oracle Forms unless you learn how to program within the Forms Framework. You can't take C++, Java or any other programming language and apply the rules of programming these languages to Forms. You absolutely must learn how Oracle Forms operates and what the rules are for developing successful Forms applications.
    That's my two cents on the topic. I'm trying to start a flame war; I'm just tired of hearing people complain about Forms just because they don't understand or haven't taken the time to understand how Forms operations and what the rules are for developing within Oracle Forms.
    Sincerely,
    Craig...
    Edited by: CraigB on Aug 2, 2011 12:38 PM

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Using WHEN-LIST-CHANGED on T-list to navigate block records

    I have a form on which I use a T-List to list all of the child records in a block based on the selected parent record of the form. I am using the T-List almost strictly for navigational purposes (and eventually later for delete purposes as well). Above my T-List on the form is all of the individual fields that display the details of the record that is selected in the T-List. My POST-QUERY trigger on the block populates the T-List with all of the child records, and also uses the value of the highest (max value) child record to updated all of the detail fields for the block. I also have a program unit that updates all of the detail fields for the block that gets called from my WHEN-LIST-CHANGED trigger for the T-List. It passes the key value from the T-List to the program unit and updates all of the child record detail information.
    My problem comes when I attempt to actually update the currently selected child record. I've tried a number of different things to get this to work, but none of them have completely worked, and I'm coming to the end of my knowledge base and can't figure out how to make this update the child record correctly. Initially I was having a problem where the form actually WAS performing the update, but it was always (no matter which list item I had selected) updating the same record, which was the first record that was retrieved for the block. I've run the form in debug mode, and checked the actual values of the child record fields after I've changed the selected item in the list, and all of those fields are actually the correct values corresponding to the selected item in the list, but for some reason, it won't update the record that is currently in those fields when I do a save. From what I can tell, I need to be able to somehow actually navigate the records in that block when I click on an item in the list (i.e. perform next_record or previous record until the block gets to the record that corresponds to the item selected in the list) so that the form recognizes and attempts to update the correct record.
    Has anyone out there tried this before? Does anyone know of a solution for how to do this? Any help would be greatly appreciated. Thanks in advance.
    -::YEX::-
    <)))><

    1. WHEN-LIST-CHANGED trigger is not for items it is for List items (Pop , COMBO, Tlist)
    2. Try to write a code on WHEN-VALIDATE-ITEM at field level with code similar to this
    if :custname is not null then
    begin
          select ship_to_location into :ship_to_location
            from tablename
         where custcd = :custcd;
    exception when no_data_found then
          ----call some alert and error message.........
    end;
    else
      :ship_loc := null;
    end if;plz mark it helpful/correct if it is

  • Macbook air locked out when password changed. is this normal???

    My friend had a macbook air running os x lion. When he changed his password ( while we were air dropping a file ) He decided to lock the mac to see if the password change worked. When he typed in the password the mac would not let him in. He had also put a hint on and there was no hint. He had to restart his mac so that he could login.
    So my question is....
    Is this normal to have this happen because i have a macbook pro and it dose not do that
    Thanks everyone
    Matt

    I can see it, and I know what you mean.
    It is normal, for the reason that Retired Engineer gave in his post. Don't be surprised if after a couple of cycles, the capacity rises to 100%, or near to it. It will go up and down, but slightly more down after a dozen cycles or so. It is completely normal to vary like this.

  • When I change my country region it says I need to spend all my glance, but my glance is 0.8, how can I spend it to 0?

    when I change my country region it says I need to spend all my glance, but my glance is 0.8, how can I spend it to 0?

    Hi ...
    Your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • Mail.app frustration - outgoing server is "none", error when saving changes

    Hi,
    I hope somebody can help. I can receive mail fine but cannot send. I had to make a change to my outgoing server yesterday due to a hosting changeover.
    I have 2 POP3 accounts for work in Mail.app. The send button is grayed out so I can't write or reply to any mail. Checking the account settings I can see that my outgoing server is listed as "None" and the box is checked to "use only this server". The proper server is listed in the drop down menu here, and I can select it. When I change to the 2nd account or close, I am prompted to Save, Don't Save, or Cancel. When I click Save I get an error that "You already have an account named "x"." This is completely ridiculous, why could I save changes yesterday but not today?
    Everything was fine with the new server settings yesterday, and until an hour ago today. Windows computers in my domain are working perfectly with the exact same settings.
    While typing this I actually got the 2nd account to accept the changes, but the 1st account is still giving me an error. The settings are the same for both! What gives? Is there a preference file I can edit manually to fix this?

    That has nothing to do with it. I ended up working around the problem by changing the account name.
    But I still think this is a bug, so I won't mark the topic as answered (a workaround is not the solution).

  • IBook shuts down when you change batteries

    If only iBook could be like PowerBook, which runs on that little amount of spare power when you change batteries... Being owner of both laptops, I tend to change batteries for my iBook much more often than for my PowerBook, which I often use with a socket nearby.

    Other than the PowerBooks the iBooks don't have a PRAM or spare battery (for the clock and so on) which would hold the system up during a (fast) battery change. So a complete shut down or an AC outlet are needed for a battery change.

  • When I change state the UI does not update

    I have some code that uses state changes to manage the buttons in a login screen:
            <mx:states>
                    <!-- Default state: the LoginWindow accepts input from the user -->
                    <!--  Login
                            login is in progress.
                            No input allowed other than the "Cancel" button
                    -->
                    <mx:State name="{STATE_LOGIN}">
                            <mx:SetProperty target="{loginForm}" name="enabled" value="false"/>
                            <mx:SetProperty target="{loginButton}" name="enabled" value="false"/>
                            <mx:SetProperty target="{cancelLoginButton}" name="enabled" value="true"/>
                            <mx:SetProperty target="{statusLabel}" name="text"
                                                            value="{resourceManager.getString(ResourceNames.BUNDLE_NAME,
                                                            ResourceNames.LOGIN_CONNECTING_STATE)}"/>
                    </mx:State>
    The problem is that when I change the state by setting currentState to STATE_LOGIN the UI change does not happen right away. In fact it doesn't take place until the login event is complete, creating a race condition.
    However, I've been able to work around this problem by explicitly setting the values of loginButton.enabled and cancelLoginButton.enabled in my program:
              loginButton.enabled = false;
              cancelLoginButton.enabled = true;
    When I do this, the buttons are enabled in the right way.
    Why does explicitly setting the button enabled flags work, but the state change, which should do the same thing, not?

    Nope, that's not it. I just now tried changing the state values to constant values and it did the same thing. Also, BTW, the state eventually does change even with the binding expressions -- it just doesn't change until after the login is done (I also tried putting the call to the login in a callLater; made no difference). But, as I said, when I assign to the enabled fields the change happens right away.

  • Beep when mail check completed is irregular

    This is not a major thing, but now that I upgraded to 10.5 the beep when Mail has completed it's check for new mail can come before it is done or shortly after it is done. Previously the beep occurred when it was complete. Now it can beep anytime and still be working on getting mail. The problem also still persists that the beep doesn't work at all if Mail has been open in background for a period of time. Close and restart Mail and the beep comes back.

    Watching the activity monitor, I found that there is a lot of synching and other duties other than getting mail and that change in mail is what is making the changed email beep

Maybe you are looking for