showMenu

fun showMenu(x: Int, y: Int)

Composes menu into a fresh JPopupMenu and presents it through display at (x, y), closing the previously shown menu first.

Parameters

x

the horizontal coordinate the menu's top-left corner is placed at, in the space display reads - screen pixels under the production default.

y

the vertical coordinate that corner is placed at, in the same space as x.