Recieving press MouseEvents immediately after release MouseEvents

When I release the mouse with this code, it receives a MouseEvent that says it's released, and then immediately afterward one that says it's been pressed again.
This is the code that processes the press events... (I am fully aware of how awful it is):
    public void processStimulus(Enumeration criteria) {
            if( !editBehavior.existsSelectedLocatable()){
                while(criteria.hasMoreElements()){
                    WakeupCriterion i= (WakeupCriterion) criteria.nextElement();
                    if(i instanceof WakeupOnAWTEvent){
                        AWTEvent[] events = ((WakeupOnAWTEvent)i).getAWTEvent();
                        for (AWTEvent j: events){
                            if(j instanceof MouseEvent){
                                MouseEvent mevt = (MouseEvent)j;
                                if (mevt.getButton() == MouseEvent.BUTTON1 &&
                                      mevt.getID() == MouseEvent.MOUSE_PRESSED &&
                                      (mevt.getModifiers() & InputEvent.BUTTON1_MASK)
                                      == InputEvent.BUTTON1_MASK){
                                    PickResult result = pickPelvic();
                                    if (result != null){
                                        System.out.print("mouse event "+  mevt);
                                        Node shape = result.getNode(PickResult.SHAPE3D);
                                        Instrument instrument = (Instrument) shape.getUserData();
                                        instrument.selectLeftClick();
                                        mevt.consume();
        wakeupOn(condition);
    }and this is the code that processes release events:
    public void processStimulus(Enumeration criteria) {
        if (manager.isEditMode()){
            while(criteria.hasMoreElements()){
                WakeupCriterion i= (WakeupCriterion) criteria.nextElement();
                if(i instanceof WakeupOnAWTEvent){
                    AWTEvent[] events = ((WakeupOnAWTEvent)i).getAWTEvent();
                    for (AWTEvent j: events){
                        if (j instanceof KeyEvent){
                        }else if(j instanceof MouseEvent){
                            MouseEvent mevt = (MouseEvent)j;
                            if (mevt.getButton() == MouseEvent.BUTTON1 &&
                                    mevt.getID() == MouseEvent.MOUSE_RELEASED
                                    && instrument != null){
                                System.out.print("mouse event " + mevt);
                                releaseInstrument();
                                ((MouseEvent)j).consume();
            if(instrument instanceof Locatable){
                computePosition();
        wakeupOn(condition);
    }I'm not sure what I'm doing to cause the spurious press events.

As concerning this topic - well, I know that
a lot of [resume services|http://cvresumewritingservices.org/] advise including this into your cv

Similar Messages

  • PO print immediately after release

    Hi SAP experts,
    I am getting  "update was terminated" message when I release a PO I.e. final release, this message I am getting only for PO for which outtype message with "4"  " send immediately when saving the application"  the output type is defined for print out.
    Requirement is, user wants the PO print after the final release, he don't want to run different T-code for print, the error details are mentioned below.
    Mod.ID ;         Mod.name ;                       Module type       Status
             1      ME_UPDATE_DOCUMENT              V1 NORMAL         Init
             2      EINKBELEG_WRITE_DOCUMENT        V1 NORMAL         Init
             3      ME_REL_EVENT_EKKO               V1 NORMAL         Init
             4      MCE_STATISTICS_UPD_V2           V2 NORMAL         Init
             5      RV_MESSAGE_UPDATE               V1 NORMAL         Err
    ABAP runtime errors    POSTING_ILLEGAL_STATEMENT
           Occurred on     23.03.2010 at 09:30:29
    >> Short dump has not been completely stored. It is too big.
    Statement "CALL SCREEN" is not allowed in this form.
    What happened?
    The current ABAP/4 program "SAPLSPO1 " had to be terminated because
    one of the statements could not be executed.
    This is probably due to an error in the ABAP/4 program.
    What can you do?
    Note the actions and input that caused the error.
    Inform your SAP system administrator.
    You can print out this message by choosing "Print". Transaction ST22
    allows you to display and manage termination messages, including keeping
    them beyond their normal deletion date.
    Error analysis
    This program is triggered in the update task. There, the
    following ABAP/4 statements are not allowed:
    -  CALL SCREEN
    -  CALL DIALOG
    -  CALL TRANSACTION
    -  SUBMIT
    How to correct the error
    If the error is in one of your own ABAP programs or an SAP program that
    you have modified, try to correct it.
    If the error occurred in a non-modified SAP program, you may be
    able to find a solution in the SAP note system.
    If you have access to the note system yourself, use the following
    search criteria:
    "POSTING_ILLEGAL_STATEMENT"
    "SAPLSPO1 " or "LSPO1U04 "
    "POPUP_TO_CONFIRM_WITH_MESSAGE"
    Thanks & Regards,
    Vijay

    Hi,
    It appears the program is triggering the output, but due to some problems, the output program canot execute it fully. The probable reasons may be:
    1. The Form (Smartform or SAP Script) assignment to the output type. The Form may be in-accessible or may the version assigned to the Output type is not active.
    2. The Driver Program for the output may be trying to access/update some table which it is not able to perform. Try to test and check print preview/ manual print is possible or not.
    3. Printer assignment to message may be faulty, i.e the printer assigned is not in system, or the printer layout assigned is not supporting. Check SP01 to find out the printer settings.
    For finding the actual cause, you can look into ST22 and take APAPers helps to find out by debugging.
    Regards

  • Print after releasing PO.

    Hi Friends,
                                    I am taking print immediately after release. Now I am getting 1 copy.Can I take 2 copies. What i Have to do for this?
    Regards,

    Dear Prasanna
    Please do to ME9F, enter the Document no( PO no. ) in the message data application- EF,  if you have already taken print out please enter "1"  in  procesing status. and execute.
    you will have list of the document and no of times print taken in the screen.
    Tick the check box and go to message details you will find output line, select the line by clicking in the extreleft and press the button " repeat output" and save the arrangement.
    Come out and again use the ME9F screen with details as earlier but processing status as " 0" instead of 1. Execute it, inside you will fine the document alone for processing.
    Take out as many prints as you want directly or if u have SPOOL request getting generated you can go to either SP01/SP02 Txn code and can give as many prints as you want. Do not delete the spool number if you wish to have more prints in future and remember the spool no for future use.
    Regards
    SAM

  • Way to Send Purchase order Information to XI after Release?

    Hi All,
    Can anybody suggest me a way how can I send purchase order information to XI immediately after releasing the PO.May be User exit, Idocs,BTE?
    Thanks in advance?
    Anil

    Hi,
    Since you have to send the Release information to XI.
    Best way is to send thru IDOC.
    IDOC Type is :ORDERS05
    Thanks

  • Notes in the iPads fly, i can not open them immediately after pressing the notes a black screen appears and disappears

    notes in the iPads fly, I cannot open them immediately after pressing the notes a black screen appears and disappears

    Quick update, the duplicate of the comic-con episode downloaded succesfully, and so has the first episode of Supernatural season 8. Blue dots appear to their left in the library.
    All the Vampire Diaries episodes (except the bonus comic-con double) have vanished, but I paid for them !
    They're not anywhere on my harddrive either.
    Which is new by the way, this is a new MacbookPro, literally set it up today.
    So it would seem this is a case of purchased and pseudo-downloaded episodes that ended up beinge gobbled up by some iTunes black hole, leaving me with no money, and no episodes.
    Need help, confirmed.

  • Mac Pro switches itself off immediately after power button is pressed on

    Hi there,
    I would like to share with you an ongoing problem of my Mac Pro (about on and off 11 month I think). Since its HD changed at the beginning of this year I've been having the problem of "switching itself off immediately after the power button is pressed on." I took it to Milton Keynes Apple Shop and apparently they couldn't replicate the problem I received it after they reset it's PRAM. Meanwhile I read the related posts and discussions about the problem and my assumption was as suggested in the scenarios of similar cause – Power Supply unit. I had a technical chat with ex-Solutions staff from Brighton, he also said it might have been caused by it.
    I really don't know what to do because, sometimes attempting 10 or over times of pressing the button I hear the chime and literally 10 or 20 seconds later it switches itself off. And it happened this Sunday morning again, 8 times I've encountered the failure. And the most confusing thing is sometimes I leave it about an hour or two and then it just works and runs fine as it has never have happened.
    By the way I left my computer on for a very long time I suspect maybe more than a month it was on sleep most of time when i am not using it. But yesterday I made the mistake of logging off and shutting it down. Now I can't turn my computer on. Highly frustrating and amazingly bizarre technical challenge.
    Mind you I am fairly capable of carrying DIY operations on it. Previously I baked my graphics card as suggested in the forum – it works fine at the moment I am waiting until it completely brakes. But this power problem really really puzzles me.
    Any opinions, how to solve this cause is highly appreciated.
    Many thanks!
    Specs:
    Mac Pro 8 core
    Xeon 5400 2nd Generation Early 2008
    10 GB RAM
    1 TB HD

    The SMC especially on the very first 2-3 months of Early 2008.
    Use to suffer from a "restart on wake from sleep" issue.
    Some one told me that is not what "inrush current issue" is but that is what I (and couple others) called it.
    Best to always have a workstation on 1500VA UPS.
    Not share the outlet or cirucit even with anything major.
    Yes it could I guess, poor phrase, but put more stress on PSU over time as a result also.
    Methods to reset SMC have varied and changed over time. Thanks to web not all the revisions and older versions are kept online though to compare to.
    Stories of people going on vacation etc for two weeks to come back to a "dead" Mac Pro started showing up in 2007.
    If it had an actual SMC button, use that to reset.
    If not, leaving it totally disconnected, and all external cables and such over-night, not for the mere 5-10 minutes.
    Unplug but then press and hold power button for 8-10 seconds. And only once. And not to be done repeatedly. That was SMC Reset #3.
    I know the 2007 8-core 3GHz had a different PSU than the smaller models.
    2008 high end was 8-core 3.2GHz 5400 (stock was 2.8GHz 4 or 8-core)
    FBDIMMs draw between 10W up to 15W each, so possible to have 8 DIMMs drawing 120W when maxed out. And heat. I always recommend Mac Pro use fan control to boost the fans a small 400 rpm to expel heat better and keep FBDIMM temps down. Heat, and temperature fluxuations stress and weaken components.
    Other than AHT and the tools that a Apple Certified center should have, not much other than to swap out parts, monitor - iStatPro or Hardware Monitor -
    And because of all this, I would setup a test system so you have a freshly formatted and installed OS and take it from there, with a better chance.
    ATI 2600XT still? or upgraded?

  • HT4623 I updated my ipad to iOS 6 yesterday and it worked immediately after update.  I left home for about 4 hours and when I returned I was uable to get my ipad to come up. I only have a black screen.  When I press the on off button nothing happens.

    I updated my ipad to iOS 6 yesterday and it worked immediately after updating my ipad worked as it should.  I left and came back in about 4 hours and have a black screen.  When I press the on off button nothing happens.  Help.

    Assuming that the battery isn't empty (and it can take up to 15 minutes of charging before it will respond), then have you tried a reset ? Press and hold both the sleep/on/off and home buttons for about 10 to 15 seconds, after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • ITunes stops responding immediately after opening

    My iTunes stops responding immediately after opening and even force-quit doesn't do.
    Baically it freezes between pressing it and opening the window. In my large library, I can see that it loads it and then nothing more. The menu appears and then the wheel. Force quitting doesn't shut the program, no matter how I do it. It leaves the arrow and the only way is to restart the computer and start again.
    I tried using another account, and it does the same. I tried with a new library. I tried with new prefs folder both on the user and on the Mac HD. I tried reinstalling iTunes. I even tried reinstalling the whole OS X - but nothing. The only thing is that after zapping PRAM it might work once or twice, but no more.
    This is with iTunes 7.0.2, QuickTime 7.1.3 and OS 10.4.8
    I don't know what else to do.
    Any ideas?

    I'm having the same problem. It started recently - maybe about two weeks ago - and occasionally when I launch iTunes it just freezes. I can't force quit it completely - it still shows in the Dock as though it's running, though it's not present in Activity Monitor.
    Curiously, I've also had a couple of kernel panics when clicking iTunes buttons in the past week. I don't recall any system update that might have affected either iTunes or QuickTime, so I'm stumped... The only way to get iTunes back is to log out or restart.
    Kirk

  • Perform check after release step of purchasing requisition

    Hi,
    does anybody have a suggestion where to place best some logic which needs to be performed after a release step is performed successfully.
    background: we use different types of Purchase requisitions, while each one is assigned to a static release strategy. I like to change it in more dynamic way by adding certain logic after a release step is performed.
    example: if preceeding release step was 10 and purchase requisition is of type x then check purchase value and account assignment in order to process the current stepo automatically.
    Currently the logic runs during a nightly job, but I would like to add it immediately after a release has been performed. I would imagin something like user exit, BusinessAddIn, or an event which I can use assign the job.
    Can anybody suggest something?
    Thanks in advance
    Best regards
    Torsten
    Edited by: Torsten Hübsch on Apr 29, 2011 10:36 PM

    Hi,
    Enhancement  M06B0005 is relevant for PR in case of overall release
    Check on trx SMOD  :
    Enhancement        M06B0005
    Short text         Changes to comm. structure for overall release of requisistion 
    --> Function module                Short Text
    EXIT_SAPLEBND_004              Changes to Communication Structure for Over.
    Enhancement        M06B0002 is for item-release
    Short text         Changes to comm. structure for purchase requisition release
    --> 
    Function module
    EXIT_SAPLEBND_001
    BR
    Nadia Orlandi

  • PR after release - Some fields grey off (Confiq settings?)

    Dear Gurus,
    Once after releasing the Purchase requistion,  some field get greyed off automatically, where can i see the configuration in SPRO, Please advice

    Hi,RS
    There are below factor will impact the purchase screen layout:
    1.Transaction(Tcode)
    2.Document typpe
    3.item catagoty
    4.acc assignmnet catagoty
    5.release status
    6.authorization to display prices
    For the release status,we could go to  below path:
    SAP Customizing Implementation Guide->Materials Management->Purchasing->Purchase Requisition->Release Procedure->Procedure with Classification->Set Up Procedure with Classification,and press Release indicator,you will get a screen and one item ,press the magnifier,you will look for the field of Field selection key. You could get value of Field selection key.
    Then
    go to
    SAP Customizing Implementation Guide->Materials Management->Purchasing->Purchase Requisition->Define Screen Layout at Document Level,you will find the itemas per the  Field selection key and go in.
    Dick Hua

  • Update teminated message after releasing and saving PO

    Hello Friends,
    After releasing and saving PO in ME29N ...when pressing BACK button...i am getting a pop message with "updated terminated".
    then i enter...in inbox the below message i am getting.
    System ID....   DEV
    Client.......   600
    User.....   ABAP
    Transaction..   ME29N
    Update key...   BAC6150D3B4CE853F588CFC55F23
    Generated....   17.04.2007, 11:08:13
    Completed....   17.04.2007, 11:08:53
    Error info...   00 671: ABAP/4 processor: PERFORM_TOO_MANY_PARAMETERS
    Even I debugged ...with break point satement with 'message' but not able to capture the "updated terminated'.
    Let me know how to sort this bug??
    With Ever Smile & Warm Regards,
    Madhu..!!

    Hi,
    Go to ST22 Transaction and Analyse the DUMP of this clearly in detail
    and discuss the same with a MM functional consultant and solve the issue.
    reward if useful
    regards,
    Anji

  • Photoshop CS6 closes itself immediately after launching, please help!

    Hi everyone,
    My situation is exactly as the titles says, l launch Photoshop CS6, and the splash logo shows up as normal, and than it will close itself  (as in literally as if l pressed the X button to exit the program; the individual brush windows and such close before shutting down, all of that stuff)
    There are no crash reports, and no error messages.
    l've been looking online extensively for an answer but l've only found other frustrated users with the same/similar problem that don't have a solution.
    l purchased Photoshop along with Illustrator, and inDesign in a bundle, and it is the same situation for those programs too, they close immediately after l launch the program.
    This all happened out of the blue, and l'm not sure what else to do.

    I don't really understand what l have to do. l don't get any activation or connection errors, and l am already signed in with my Adobe ID.
    lt also shows up on my Adobe page too; http://i.imgur.com/eHm6yaU.png
    l think that it is activated, but the programs on my computer don't think it is activated.
    + Edit: l made a new account by accident the other day because l forgot about it, so l'm the same person asking the question by the way.

  • Photoshop closes immediately after starting up. Lightroom and Bridge works fine

    Photoshop closes immediately after starting up. Lightroom and Bridge works fine

    Is there some reason for not mentioning the version, the OS, …?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)

  • PPC MacMini shuts down immediately after boot, LED blinks

    A client gave me his PowerPC MacMini which boots up but then shuts down after a few seconds. Unfortunately, there's not enough time to open the system preferences between booting and automatic shutdown.
    I've tried to boot the computer from a system DVD and with "T" pressed for target mode, but it always boots up completely from the internal drive. Booting with "Shift" pressed boots in safe mode, but the machine still shuts down after a few seconds.
    Interestingly, the power LED blinks about once per second. I wasn't able to find anything about this on the Net.

    AndyO wrote:
    If, on the other hand, the mini is starting up, and then failing, and the light isn't so much blinking as pulsing, then the system may be suffering protective shutdown as a result of overheating. That can be tested by seeing whether it runs longer after being left unplugged for several hours, thus being cold, than it does if it's been running (or attempted to be run) for some time, and is thus already warmed. In that event, the mini will need to be disassembled to some extent to try and identify whether the fan is running, the CPU heat-sink is firmly attached and the thermal pad which is squeezed between the underside of the logic board and the base of the system is replaced.
    I have a Mac Mini Intel Core 2 Duo that is suffering almost the same symptoms (shut-down almost immediately after startup); however, it DOES appear to be for a variable length of time based upon how much time I let it sit and 'cool' down; therefore, I believe I'm experiencing an over-heating issue.
    I've installed a matching 1GB pair of RAM about 1.5 months ago and all has been fine until now. The unexpected (which is now expected) shutdown after startup is occurring on both Mac OS X 10.5.2 and Windows Vista (on Boot Camp partition) ... of particular note ... the Windows side shuts down more quickly (likely due to it not having the same system monitoring/energy handling tools that would be available to the Mac OS X side ... so I would suspect it to over-heat sooner on the Windows side).
    Successfully completed Hardware tests (simple & extended) reported memory and other system hardware was fine. 'Check/Verify Disk' on Mac/Windows side reported no issues with either partitions.
    Attempts to reset the PRAM and SMC have not solved the problem.
    There was one instance, after startup, that the fan ran at full speed continuously and noticed that the power light was not on at all ... at the time, I was on the Mac startup disk and it stayed up and running for about 20 minutes or more until I decided to shutdown and test the Windows side. Upon restart, the fan did not run continuously, and the Windows side shut-down shortly after start up.
    Overall, I'm fairly convinced it is an over-heating problem. If anyone has any ideas or reference material to confirm or how-to-do "the CPU heat-sink is firmly attached and the thermal pad which is squeezed between the underside of the logic board and the base of the system is replaced" that would be greatly appreciated.
    I am not ruling out sending the machine into the retailer for servicing/diagnostics; however, if there's a relative quick fix so that I don't have to identify and remove confidential/sensitive info first, that would be preferred.
    Thanks.

  • MacBook Pro shuts off immediately after startup

    My MacBook Pro shuts off immediately after I start it. It gets to the Apple logo on the grey screen and it shuts down. I have tried launching it in safe mode, resetting the NVRAM settings, nothing works.. Has anyone witnessed similar problems ? What can I do to fix this problem ? Help is gladly appreciated.

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Also see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

Maybe you are looking for

  • Problem in using OCIBindByName  for date type column

    Hi, Can you please guide me about my following problem? I am trying to fetch the data from system table "FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$" in Oracle Express edition 10.2.0.3 database, using the OCI library on Windows with C++ This table has a TIM

  • Solaris 10 hanging at Configuring Devices during installation

    Hi All, I am trying to install Solaris 10 via cd or net, but it hangs at Configuring Devices. This is an upgrade to the current Solaris 8 OS that is running on this system. Does anyone have any insight to this problem? Thanks in advance, Brian

  • Created widget is not entering in the SAP system.

    I have created a simple widget to directly enter in the se38 transaction in SAP-ABAP.I have created 2 files. My tra.sap file contains---[System] Name="AD4" Client="100" [User] Name="in016508" Password="mandar" Language=EN [Function] Command=SE38 Titl

  • USB connection of two Macs

    Is it possible to hook up two Macs directly with an A Male to A Male USB cable? i.e an iMac G3 to a G5 Desktop? And if so would one or both show up on the other display as an external drive, thereby allowing dragging of files, apps etc? G4/400AGP Mac

  • Financial impact - Need to correct the posting key

    Dear All, During a configuration,by mistake in OBYC in transaction key COC, in posting key, a entry 40 and 50 in the field Debit & credit was made. However, It was blank in initially. Now when going to change it by making it blank, system throwing an