JDK-2147959 : JMenuItems in JPopupMenus not receiving ActionEvents - incompat with 1.5
  • Type: Backport
  • Backport of: JDK-6515446
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2007-03-26
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u2Fixed 7 b15Fixed
Comments
EVALUATION This is a side-effect of the fix for 5036146 which skips the mouseReleased events for a menu if invoker is not a MenuElement (see the suggested fix) I am not sure it is possible to fix this regressing without breaking the fix for the 5036146 *** (#1 of 2): 2007-03-12 19:10:21 MSK ###@###.### After thoroughly testing it becomes clear that this is a serious bug and we should fix it ASAP I tested this testcase together with ones from 6415145 and 5036146 and think it is possible to fix this one without breaking the others the idea is to add the if (isInPopup(src)) { break; } checking to the MouseEvent.MOUSE_RELEASED: case of the MouseGrabber, it is actually the same what we have already done for the MOUSE_DRAGGED case More testing will be done *** (#2 of 2): 2007-03-21 21:51:02 MSK ###@###.### The fix works well
29-03-2007