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

Difference in Behaviour Between ObservableMap & ObservableList When Tied to a Listener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx
    • None
    • Windows 7.
      Java 8 Build 123.
      NetBeans 8.

      When I run a setAll on an ObservableList that has a ListChangeListener attached to it, the listener is only woken up once, after all of the items have been added to the list.

      Running putAll on an ObservableMap with a MapChangeListener does not have the same effect. It will wake the listener for every item being added to it.

            msladecek Martin Sládeček
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: