-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b53
-
sparc
-
solaris_10
-
Verified
I have a frame with a button. I am pressing the mouse (left button) inside the button, dragging the mouse outside the component and releasing it outside the component. I am surprised to see button trigger action event in this case. Button should not trigger action event when the mouse is released outside the component. It works fine when the mouse is released outside the frame but action event is triggered when the mouse is released within the frame but outside the component.
This is a regression introduced in mustang-b47 and not reproducible on b46. This is reproducible only on XToolkit. I reproduced it on SolarisSparc10-JDS.
I have attached a sample test. Execute the sample test. You would see a frame and a button. Press the mouse inside the button, drag it and release it outside the component (but within the frame). If you see an action event message on the console, the bug is reproduced.
Similar behavior is seen for other components also. For Button, TextArea and List, when I press the mouse inside the component and drag it outside the frame, I am getting MouseExited event and when I bring back the mouse into the frame (not into the component) I am getting MouseEntered event. I am sure this will be reproducible for other components also since this does not look like a regression introduced at the component level. This is a basic feature and must be fixed at the earliest.
This is a regression introduced in mustang-b47 and not reproducible on b46. This is reproducible only on XToolkit. I reproduced it on SolarisSparc10-JDS.
I have attached a sample test. Execute the sample test. You would see a frame and a button. Press the mouse inside the button, drag it and release it outside the component (but within the frame). If you see an action event message on the console, the bug is reproduced.
Similar behavior is seen for other components also. For Button, TextArea and List, when I press the mouse inside the component and drag it outside the frame, I am getting MouseExited event and when I bring back the mouse into the frame (not into the component) I am getting MouseEntered event. I am sure this will be reproducible for other components also since this does not look like a regression introduced at the component level. This is a basic feature and must be fixed at the earliest.
- relates to
-
JDK-6325737 Extended Modifiers on Mouse Events are wrong
- Closed
-
JDK-6324985 XAWT: extra MouseEntered event when dragging mouse through component border
- Closed