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

TableView with an ObservableList with extractor changes selection unexpectedly to last TableColumn when the observed item changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx24
    • javafx
    • None

      Given an editable TableView control, with cell selection enabled, that uses an ObservableList that is defined with an extractor, observing a given property of the model, when that property changes (for instance, via user editing the value, or programmatically), the selection shifts to the end of the row unexpectedly.

      To reproduce the issue run the attached test, and:
      - Click on the first cell of the first row, it gets selected (see "cell selection.png")
      - Double click on the first cell of the first row to start the edit mode, and change the name "Jacob" (like "Jacob1", see "cell editing.png").
      - Press enter, the value is committed as expected.
      - The selection is moved to the last cell of the first row, unexpectedly (see "cell selection shifted.png").

      There is no workaround, but removing the extractor fixes the issue.

      It might be related to https://bugs.openjdk.org/browse/JDK-8262200

            Unassigned Unassigned
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: