Replacing EventQueue with my own implementation...

Hi all,
I can't seem to figure out if when I use the EventQueue.push() method to put my own event queue, if it actually replaces the old one OR just adds it to the end of the eventqueue array? The API says it replaces it, but within the code it seems that when you push one, it navigates to through the nextQueue until it gets to the end then adds the one you are pushing as the end. The reason I ask this is that if an application puts one in place, then I add one myself, I dont want to replace the one there, just add mine so that both get used. The reason is, we use a simple WaitCursorEventQueue AND I need to push one to add a global hot key, and I dont want to remove the application one, otherwise it could mess something up. So by "pushing" mine, am I replacing the one that was there and it is never used again until I remove mine?
If so, perhaps a better way is to grab the one that is there, and "chain" to it when I insert mine, such that if the processing I am waiting for doesn't occur, rather than call super.eventDispatch(), I call the old ones postEvent() or invokeLater() method?
Thanks.

uncle_alice,
Thanks for the info. You may be right.. the way you say that it does make sense. If you look at the code for dispatchEvent it does NOT loop through or go through the linked list of queues to dispatch events. Unless there is some behind the scenes code I am missing, it seems likely that it only goes to the event queue in place. More so, what pretty much locks this assumption is that when you open up a dialog and it temporarily inserts its own dispatch event queue, it does so to stop events from going to the main window underneath, hence it effectively replaces it. If it did what I was asking, then you couldn't achieve the modal capability that it does, because the main event queue would still get events as well, unless of course you did not make a call to super.dispatchEvent()...??
Oh well, so the solution for me is to either combine them, which I can't do, or to modify them (since I have access to both source files) so that they "chain" together. One if for my test stuf... I put in a hot-key watch to allow me to stop a test in action. The other is the one expected as part of the application, to change the cursor if an event takes more than 1/2 second to process. The good thing, at least, is during testing it is not a big deal if the cursor doesn't change. But I can see where my test framework may be used in an application that depends on the custom eventqueue that is in place, and displacing it could have disasterous effects.

Similar Messages

  • A family member has given me her iPhone. How do I delete her Apple ID and replace it with my own

    A family member has given me her iPhone. How do I delete her Apple ID and replace it with my own ?

    Any Apps that have been downloaded with her Apple ID will remain Tied to that ID...
    You should consider doing a Restore as New and start over with your ID...
    Connect the Device to the iTunes library on your Computer, click on the Device tab that appears in iTunes and click Restore.
    http://support.apple.com/kb/HT1414

  • If I reinstall Snow Leopard to replace "user" with my own short name in accounts, will I wipe out all upgrades, mail settings, etc. that I have already set?

    After buying a second-hand laptop running Snow Leopard, I made mistake of upgrading software, creating mail accounts, Safari preferences, etc., before noticing that the account name was "user".  I want to replace this Admin account with my own short name, but can't seem to do it without completely reinstalling Snow Leopard.  If I do this, will I lose everything I have done already?  Thanks in advance,
    DRJ

    Kurt,
    I have a question about that link....it said to change the name of the folder in the way you would change any folder....
    There is where i am having the problem....I just got a mac and i am having windows withdraw...b/c i don't know how to do jack.......
    When i have my finder window open and look under places i see the house icon with the (i assume) user's short name.....this will not let me rename this......Is there a reason why???
    Thanks..
    Daniel

  • How do I replace someone else's Mac ID with my own? Bought iPhone second hand. Previous owner re-set the phone but his ICloud account stayed on now my phone. He uses his macID on his new iPhone now?? Any ideas, as this issue is blocking my access to iTune

    How do I replace someone else's Mac ID with my own?
    Bought iPhone second hand on TradeMe.
    Previous owner re-set the phone but his ICloud account stayed on now my phone. He uses his AppleID on his new iPhone now and, understandably, does not want to give me his password. Any ideas?? Please.
    This issue is blocking my access to iTunes and any other file from my home computer. It keeps on telling me that I have to autorise my computer to pass on files, yet, it seems, for all this to happen, I need to get logged in through the phone's Apple ID. This of course is different to my one on my computer - and I have no password for it.
    This phone is not stolen!! I payed still a fair bit for it. Am still in contact with the previous owner. He doesn't know how to fix the problem either.
    Would appreciate any suggestion ????
    Thanks
    SamSings

    Settings>general>resets>erase all content and settings.
    That will put it back to its out of the box state. Set it up with your own apple Id.

  • Is it possible for me to replace the present pictures on the Apple TV home page with my own personal pics?

    Is it possible to replace the present pictures on the Apple TV home page(floating) with my own?

    Welcome to the Apple Computer.
    You can't change the stock photos, but you can add your own and view those instead.
    First add your photos, you can do this from the advanced menu in iTunes. Once you've added photos to share, go to settings > screensaver on the Apple TV and select the photos to use as a screensaver.

  • Replace Detailed Navigation with an own iView

    Hi everybody,
    how can i replace the DetailNavigation with an own WD-iView (on the left side of the portal framework page)?
    regards,
    Sid

    Hi,
    I believe this question belongs rather to some kind of portal or portal development forum.
    Please close this thread and raise this question there.
    Thank you for your understanding!
    Best Regards,
    Ervin

  • Pages templates how replace given info with my own?

    Question: I'm trying to use a business card template. Have replaced the 'holding info' with my own wording in upper left section: now want this info to be repeated in all other sections on page: how to do this?

    Pages 5?
    You copy the first corrected business card and paste it in the other cards. You can use Cpoy and Paste, Option  + drag or use Cmd + d to duplicate the first card.

  • Creating a Script to Replace Supplied Swatches with Our Own...

    We have a client that provides us art with their own swatches. We in turn have to load the corresponding swatch from our library for that client and merge. Would there be a way to script this?
    They are not named the same but usually part of the name is the same. For instance, a supplied swatch is called 'White_S06_001A_white' and we replace it with 'WHITE_we_rgb'... or 'Red_SLD_A1MH_186' is replaced by '186_RED_we_rgb'
    Wondering if this might be possible. Thanks.

    I think it's possible (although it's beyond my scripting prowess) but
    ... usually part of the name is the same ...
    usually is not going to work. Only if you have one of these:
    a list of all usual name differences (and all of them)
    or, an exact list of all of your clients' names and yours.
    then a script can do it.
    For (1), it needs the differences to discard and replace the bad name bits with the good stuff. For example, the "_we_" can be added right after the first underscore, and eh (thinking about your 2nd example ...), well, something like "if there is a number at the end place it at the start and replace the word before the first underscore with capitals and throw everything else away and add "_we_rgb" to the result" -- you get the idea. Is there any rule to this at all?
    For (2), it just requires a simple "a -> b" translation list.
    By the way: how do you know it's safe to change the name? Are the RGB values of your and their swatches identical?

  • How can i replace the standard ESS iview with my own iview

    I want to replace standard ESS addr iview with my own WD developed by ABAP
    I added the iview(my WDA) into standard ESS addr page.
    (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.cn/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr)
    And make it visible.
    But I got this error in ESS PA addr :
    WebDynpro Exception: Application PER_ADDRESS_CN Does Not Exist
    Here is the error code :
    Error code:ICF-IE-http-c:100-u:AC_WANGFZ-l:1-s:CE1-i:SAPCE101_CE1_01-w:0-d:20070514-t:172301-v:RABAX_STATE-e:UNCAUGHT_EXCEPTION
    So , how can i replace the standard ESS iview with my own iview?
    Thanks

    Can you see any Javascript EPCF code in the old iView  ?  You are surely just going to have to find it  (if our hunch is correct) and analyse it and copy it into your new iView so that it functions in some way that at least does not error

  • How can I replace the out of the box photos with my own when music is playing?

    How can I replace the out of the box photos with my own when music is playing?

    Welcome to the Apple Community.
    Select any photos you want to share with the Apple TV using the iTunes advanced menu (using iPhoto is the better option but a folder will work). Once all the photos you want are shared, go to settings > screensaver on the Apple TV and choose which of those shared photos you want to use with your screensaver.

  • Replacing verizon router with my own

    Hello,
    I want to replace my current verizon router with my own, the issue I have is I can not logon.  I know I can do a full reset but all the info will be lost. (gateway, verizon password, ect).  Is there any way around this?  I only have fios, no tv.  Incoming connection is a cat 5 cable from fiberoptic converter.  Or will I be stuck calling tech support?
    Any help would be appreciated, I have small to fair knowledge with these devices.
    Geo1cran

    since your hooked up with cat5 your good to go. Now if your DHCP verizon would need to help or if your PPPOE then all you have to do is hook up your router and your good to go.

  • My iPhone broke within the years warranty so they replaced it for me, does the replacement come with it's own years warranty aswel?

    My iPhone broke within the years warranty so they replaced it for me, does the replacement come with it's own years warranty aswel?

    A phone replaced under warranty will have the balance of the original warranty or 90 days, whichever is longer.

  • How to replace forms runtime mdi window icon with my own icon

    hi,
    I have an application developed with oracle 9i forms but my problem is that I want to replace the forms runtime mdi window icon with my own icon.
    please any help will be highly appreciated.
    thanks.

    If using seperateFrame=TRUE then you can do
    if WEBUTIL_SEPARATEFRAME.IsSeparateFrame then
    WEBUTIL_SEPARATEFRAME.SetIcon('my_logo.gif');
    end if;
    Regards,
    Werner

  • PRD Cutover - Replace RSWUWFML2 with Extended Notif framework SWNADMIN

    Hi Folks,
    We are using RSWUWFML2 to send out notifications for workitems in Production (PRD) environment.
    Now we have implemented Extended Notification framework (SWNADMIN) in Dev and we are happy with what we learnt so decided to discontinue RSWUWFML2 in PROD and replace it with SWNADMIN config and job SWN_SELSEN.
    From what I understand when I configure SWNADMIN in PROD and the SWN_SELSEN is run first time, it will send out one notification to every user who has pending work-items in their Inbox eventhough these users may already have received notifications for such items from existing program RSWUWFML2.
    How do we do this cutover (discontinue RSWUWFML2 with extended notif framework)? How do I make sure that any work-items that were already accounted for send by RSWUWFML2 will not be considered by SWN_SELSEN?
    Can I maintain a cutoff date in one of the  extended notification tables?
    our SWNADMIN settings - All items - Once a day / New and changed work-items - Once every 30 mins,/ reminders for any pending work-items - individual notification for every workitem (after initial collective notification) until workitem is completed
    I will appreciate any help.
    Saurabh

    Whether this is the best approach or not this is what I did.
    In SWNADMIN I deleted the SAP entry ALL (under Selections) (ALL_FULL and ALL_DELTA).  I then created my own Selection and then specified the tasks to send notifications for.
    Once I had created the custom selection (ZSELECTION) two entries were created (viewable in SWNCONFIG)
    1) ZSELECTION_ALL
    2) ZSELECTION_DELTA
    I removed the schedule for ZSELECTION_ALL and only the schedule for Delta remained. This way only new and changed tasks will be included in the SWN_SELSEN program.
    Then you can migrate the tasks at your discretion and remove the entries from RSWUWFML2 batch job on a case by case basis.
    Additionally dont forget you should setup the batch job program to delete notifications as well: RSWNNOTIFDEL

  • How to replace Netgear with TC and not lose settings everywhere

    I just purchased a TC with my new iMac. I previously used a netgear router for my wireless and a WD hardrive for my time capsule. If I replace the netgear with the TC is there a way of doing so that won't cause me to have to re-enter wireless info and passwords for all my devices that connect to the internet (iphones, ipads, apple tv, wii, other computers, sonos, etc........). I searched and did not see any discussion on this exact issue. Any help would be appreciated!!
    I have a 27" iMac and comcast cable with its own modem.

    If I replace the netgear with the TC is there a way of doing so that won't cause me to have to re-enter wireless info and passwords for all my devices that connect to the internet (iphones, ipads, apple tv, wii, other computers, sonos, etc........).
    Sorry, but no.
    Another thing to think about is that your Netgear device may likely be both a modem and router in one package. If that is the case, you will still need to use the Netgear device, even if you do add the Time Capsule.....since the Time Capsule has no modem on board.

Maybe you are looking for

  • Email deleting itselt in Nokia messenger

    Hi all I have a problem.  I have added my Blueyonder email account to Nokia messenger and now emails are pushed through to my N900.  I noticed that when they arrive after viewing then going out to the main menu then back in the emails disapear.  I do

  • Xsl for-each  not working in BPEL

    Hi, My input xml would contain the attribute @SourceModified at many places. In a xsl, for each occurence of that attribute I need to assign a set of values and then invoke a partnerlink. My code is <xsl:template match="/"> <xsl:for-each select="//@S

  • Cascade delete in many to many association

    Hi All,     I have a usecase, there is an association with many to many cardinality  between 3 EO's. If i delete  any record in master, the corresponding childs all should delete.     So appreciate if any alternatives on above usecase. Thanks in adva

  • Lost in the changeover

    Can anyone help me? My last iMac died and I've got a new one. I've also got the hard drive from the old iMac, but when I try to open things from it, such as the address book, the new version opens and I can't find a way to get at the info that is in

  • I just downloaded photoshop cc trial and it gives me a error when I try and use it

    Need help with the down load not working!