JDK-8074482 : [macosx] Menu items disappear and redrawn quickly when moving mouse into applet frame
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-03-05
  • Updated: 2015-09-29
  • Resolved: 2015-03-27
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 8 JDK 9
8u60Fixed 9 b61Fixed
Description
On mac-os, the applet menu items looks like it disappear and redrawn very quickly when moving mouse into applet frame.
Menu items in a JFrame does not have this issue.
Comments
More annoying effect arises when the second menu is opened and when mouse crosses the applet bounds while moving up the second menu is closed and the first is selected. (see attached screen) This behavior is reproduced with the Metal LaF as well.
19-03-2015

The reason is the following: The Safari NPAPI implementation generates the following mouse event sequence when cursor enters the applet frame: - mouseEnter (0,0) - mouseMove (actual coordinates) Thus when entering the applet frame the first mouseEvent positions to the point (0,0) first, then to the actual location. Menu is located at (0,0) and it first closes popup and then displays it again on the sequential mouseMove. The similar for exit: - mouseMove (actual coordinates) - mouseExit (0,0) The Firefox behaves differently and has no such problems.
19-03-2015