JDK-8187639 : TrayIcon is not properly supported on macOS in multi-screen environment
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9,10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2017-09-18
  • Updated: 2021-04-06
  • Resolved: 2017-10-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 10
10 b31Fixed
Related Reports
Relates :  
Sub Tasks
JDK-8195735 :  
Description
Since macOS 10.9 the main menubar is shown on all screens(not only on the main screen), which means that on both screens the trayIcons are visible.
Our code is not ready for this situation:
 - The mouse events are incorrect.
 - The location of the trayIcon is also incorrect.
 - The notification message is in the wrong position, see image.

We should try to show the trayIcon only on the mainscreen or rework the CTryIconPeer to support multi-screen environment.
Comments
An updated notifications are attached.
16-10-2017