Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6353383

REG: Frame.getMousePosition() does not work properly on Win32

XMLWordPrintable

    • Cause Known
    • x86
    • windows_xp

      I have a frame and I have added a TextArea to it. I have added a popup menu to the textarea. On Clicking one of the menuitems in the popup menu, I am calling Frame.getMousePosition(true) and I am expecting the current mouse position to be returned. But on Win32, this method actually returns NULL.

      This is reproducible only since Mustang-b53 and not reproducible on Tiger, Mustang-b51 on Win32. Hence it is a regression introduced in either Mustang b52 or b53. This is not reproducible on XToolkit and happens only on Win32.

      I have attached a sample test. Execute the sample test. You would see a Frame with a TextArea and 2 buttons. Click on one of the buttons shown in the bottom. Right click inside the textarea and a popup menu will be shown. Choose File -> Open -> any of the menu items (say 'From File'). Check the mouse positions printed on the console. If it is null, the bug is reproduced.

            denis Denis Fokin (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: