Calling remove(int) on JPopupMenu is bad

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.2.2
    • Affects Version/s: 1.2.0
    • Component/s: client-libs
    • 1.2.2
    • generic
    • generic



      Name: clC74495 Date: 12/08/98


      The Container class has a remove(int) and remove(Component) method.
      The remove(Component) method calls remove(int).
      JPopupMenu overrides remove(Component) to do JPopupMenu specific stuff.
      If you directly call JPopupMenu.remove(int) this specific stuff is not done.
      JPopupMenu should override remove(int) to ensure that the Action objects
      for any JMenuItem components are removed from the action changed listener
      registry.
      (Review ID: 47571)
      ======================================================================

            Assignee:
            Georges Saab
            Reporter:
            Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: