Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7124321

[macosx] TrayIcon MouseListener is never triggered

XMLWordPrintable

    • b18
    • generic
    • os_x
    • Verified

        http://java.net/jira/browse/MACOSX_PORT-592 submitted 2011/10/20 by Frank Kline
        MouseListener is never triggered by clicks on the TrayIcon (MouseListener works properly on Oracle-released JRE7 for Linux and Windows).
        <div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;><div class=&quot;codeContent panelContent&quot;><pre class=&quot;code-java&quot;>...SystemTray tray = SystemTray.getSystemTray();trayIcon = <span class=&quot;code-keyword&quot;>new</span> TrayIcon(trayImage);trayIcon.addMouseListener(listener);tray.add(trayIcon);...</pre>

              leonidr Leonid Romanov (Inactive)
              vasya Vassili Igouchkine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: