void (Component comp, int x, int y) { ActionManager manager = actionManager == null ? ActionManager.getInstance() : actionManager; ActionGroup actionGroup = group.apply(manager); if (actionGroup == null) return; ActionPopupMenu popupMenu = manager.createActionPopupMenu(place, actionGroup); popupMenu.setTargetComponent(component); JPopupMenu menu = popupMenu.getComponent(); if (menuListener != null) { menu.addPopupMenuListener(menuListener); } menu.show(comp, x, y); }