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

BasicMenuUI attaches the same property change listener twice to JMenu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 5.0
    • client-libs
    • b14
    • x86
    • linux

      Testing with JDK1.5.0b63.

      When the BasicMenuUI is attached to javax.swing.JMenu during its initialization it registers twice the same property change listener to this JMenu item. Both are BasicMenuUI.Handler instances once created from BasicMenuUI.installListeners and second created by BasicMenuItemUI.installListeners again calling overloaded getHandler() method.

      It means that for each property change event it executes the same code twice.
      ###@###.### 2004-09-16

            kizune Alexander Zuev
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: