Hello!
I use SWT + JFace and want to show my application window near the tray icon, like ToolTip.
Is there a way to get the location of a TrayItem?
Hello!
I use SWT + JFace and want to show my application window near the tray icon, like ToolTip.
Is there a way to get the location of a TrayItem?
I haven't tried this, but since TrayItem
extends Item
, which is an instance of Widget
, why not try this:
Tray tray = display.getSystemTray();
TrayItem trayItem = new TrayItem(tray, SWT.NONE);
Rectangle bounds = trayItem.getDisplay().getBounds();