public void mousePressed(MouseEvent me) { JPopupMenu menu = new JPopupMenu(); ... //Füllen menu.show(me.getComponent(), me.getX(), me.getY());}