/** * Displays the PopUpMenu at a specified position. * * @param invoker the component that triggers the event * @param x mouse X position on screen * @param y mouse Y position on screen */ @Override public void show(Component invoker, int x, int y) { Point p = getPopupMenuOrigin(invoker, x, y); super.show(invoker, p.x, p.y); }