// menuItems can also just be a PopupMenu // also, first of menuItems can be a Runnable for left-click on icon static TrayIcon dm_systemTrayIcon(S imageID, S tooltip, O... menuItems) { TrayIcon tray = installTrayIcon(imageID, tooltip, menuItems); dm_ownResource(tempTrayIcon(tray)); ret tray; }