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

TableView.getSelectionModel().getSelectedItems() duplicates items select with Shift-Click

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
    • Environment:

      2.1 b02, win7

      Description

      run attached code snippet and look at output.

      1. Select one item, or several items using Ctrl. Output will be correct:

      Selected: 0 item(s) []:
      Selected: 1 item(s) [3]: Emma
      Selected: 2 item(s) [3, 1]: Emma Isabella

      2. Now select several items by clicking on first item and shift-click on 3rd item. Output will show that items are duplicated in the result list:

      Selected: 6 item(s) [1, 1, 2, 2, 3, 3]: Isabella Isabella Ethan Ethan Emma Emma

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            sgrinev Sergey Grinev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: