In the GraphEditorDemo of the Jung-2.0 package the popup menu accumulates all menu items which are created during the whole editor session. E.g. when I create a vertex by right clicking on empty space there is one menu item "Create Vertex". When I create a second one there are already two menu items "Create Vertex".
I think the problem is in the class edu.uci.ics.jung.visualization.control.EditingPopupGraphMousePlugin:
The JPopupMenu object is created when the EditingPopupGraphMousePlugin class is initialized. Every time the handlePopup() method is called new menu items are created and added to the JPopupMenu but the popup menu is never cleared.
in version 1.7.6 this doesn't happen because the JPopupMenu object is created new every time when handlePopup() is called.
Suggested fixed version of the EditingPopupGraphMousePlugin
This bug is discussed in the forum: https://sourceforge.net/projects/jung/forums/forum/252062/topic/3235796 (with a solution that could fix this)
.. Please fix this immediatly because new users like me who make the first steps could be discouraged to use JUNG
i confirm this bug.
I think many people out there would like to use your library. But this bug is really unacceptable.