Action action = new AbstractAction(){ public void actionPerformed(ActionEvent e) {  } }; action.putValue(Action.NAME, item.getLabel()); ((JPopupMenu)jComponent).add(action);
item.addNotify(); jComponent.add(((SwingMenuItemPeer)item.getPeer()).jComponent);
    public void addItem(MenuItem item) {        Action action = new AbstractAction(){            public void actionPerformed(ActionEvent e) {                //todo implement it            }        };        action.putValue(Action.NAME, item.getLabel());        ((JPopupMenu)jComponent).add(action);    }