Java – SWT TrayItem Mouse listener

javaswtsystem-tray

I use SWT for my app and all significance of it, to use system tray. May be some one know how to add mouse listener to the TrayItem (or just handle mouse events)? For example, handle mouse hover event.

Thanks in advance and best regards,
Alex

Best Solution

SWT TrayItems seems not to implement mouselisteners. However: If you just need to show a tooltip on mouse hover, use public void setToolTipText(String string) method of TrayItem class.

Related Question