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

DOC: Doc must be clarified on removal of a KEDs when dispatching is in progress

XMLWordPrintable

    • generic
    • generic

      I have added 2 KeyEventDispatchers to the current KeyboardFocusManager and I am trying to remove one of them within the dispatchKeyEvent() method of the first KeyEventDispatcher. The changes made to the KED list is not actually reflected until the end of dispatching and in the above case, the events are getting dispatched to the removed KeyEventDispatchers also. While this may be the expected behavior, it is better to document this clearly that the removal of KEDs will not be reflected on the KED list until the current dispatch is over.

      See comments section for more information.

      This is reproducible on all platforms right from JDK1.4.

      I have attached the sample test that would describe the current behavior.

            son Oleg Sukhodolsky (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: