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

TableViewSelectionModel.getSelectedIndices() returns duplicates when cell selection enabled

XMLWordPrintable

      When cellSelectionEnabled is true, and multiple cells in a single row are selected, the List returned from getSelectedIndices() will contain an index for each selected cell, not row.

      Thus, for instance, if I have a single cell selected in the first row, and three cells selected in the second row, the List returned will be [0, 1, 1, 1]. I would only expect to find [0, 1]. Per cell selection queries should use getSelectedCells().

      getSelectedItems() also displays this behavior.

            jgiles Jonathan Giles
            eheumannjfx Eric Heumann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: