Menu

#123 Number of popup menu items increases with every right click

Likely Bug
open
nobody
5
2009-07-10
2009-07-10
No

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.

Discussion

  • SpaceMasterJB06

    SpaceMasterJB06 - 2009-07-10

    in version 1.7.6 this doesn't happen because the JPopupMenu object is created new every time when handlePopup() is called.

     
  • SpaceMasterJB06

    SpaceMasterJB06 - 2009-07-23

    Suggested fixed version of the EditingPopupGraphMousePlugin

     
  • ghost-shell

    ghost-shell - 2010-01-19

    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

     
  • Fırat KÜÇÜK

    Fırat KÜÇÜK - 2010-12-30

    i confirm this bug.

     
  • Andreas PAX Lück

    I think many people out there would like to use your library. But this bug is really unacceptable.

     

Log in to post a comment.

MongoDB Logo MongoDB