Adds the specified action listener to receive
ActionEvent
s from this
TrayIcon
. Action events usually occur when a user selects the tray icon, using either the mouse or keyboard. The conditions in which action events are generated are platform-dependent.
Calling this method with a null
value has no effect.
Refer to AWT Threading Issues for details on AWT's threading model.
@param listener the action listener
@see #removeActionListener
@see #getActionListeners
@see java.awt.event.ActionListener
@see #setActionCommand(String)