popUpContextMenu

fun popUpContextMenu(menu: Menu = definedExternally, position: Point = definedExternally)(source)

Pops up the context menu of the tray icon. When menu is passed, the menu will be shown instead of the tray icon's context menu.

The position is only available on Windows, and it is (0, 0) by default.