public synchronized void addMouseListener (MouseListener listener)

Adds the specified mouse listener to receive mouse events from this TrayIcon. Calling this method with a null value has no effect.

Note: The MouseEvent's coordinates (received from the TrayIcon) are relative to the screen, not the TrayIcon.

Note: The MOUSE_ENTERED and MOUSE_EXITED mouse events are not supported.

Refer to AWT Threading Issues for details on AWT's threading model.

Parameters:
listener    the mouse listener

See also:
java.awt.event.MouseEvent, java.awt.event.MouseListener, removeMouseListener(MouseListener), getMouseListeners