-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
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.
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.
- relates to
-
JDK-6293952 Component.getMousePosition works incorrectly for overlapping toplevels
-
- Resolved
-