Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4195823

Calling remove(int) on JPopupMenu is bad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.2.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: