JPopupMenu () { final DefaultActionGroup group = new DefaultActionGroup(); group.add(createRenameSelectedAction()); ActionPopupMenu menu = ActionManager.getInstance().createActionPopupMenu("AutomaticRenamingDialog", group); return menu.getComponent(); }