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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.1
    • fx2.1
    • javafx
    • 2.1 b02, win7

      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

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

              Created:
              Updated:
              Resolved:
              Imported: