please include function componentPopupMenu. svoid showInternalFramePopupMenu(final JInternalFrame f) { if (f != null) swing { componentPopupMenu_init(); L maker = componentPopupMenu_map.get(f); if (empty(maker)) ret; new JPopupMenu menu; int emptyCount = menu.getComponentCount(); componentPopupMenu_mouseEvent.set(new MouseEvent (f, MouseEvent.MOUSE_PRESSED, now(), 0, 30, 15, 1, true)); for (O menuMaker : maker) pcallF(menuMaker, menu); // show menu if any items in it if (menu.getComponentCount() != emptyCount) menu.show(f, 30, 15); // ? } }