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

TableView selectedCells are updated too many times

    Details

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

      Windows 7 x64, javafx-2_0-beta-b32-windows-i586-17_jun_2011

      Description

      I started to listen for selectedCells changes:

      tableView.getSelectionModel().getSelectedCells().addListener(listChangeListener);

      and observed the following behavior:
      - each time selection changes, or even just the same selected cell is clicked again, selectedCells is cleared (even twice when setCellSelectionEnabled(true)) and then populated with values.

      So for each click on the same cells I get the following changes:
      1. nothing selected
      [2. nothing selected]
      3. selected = 0, 14

      I tried to reproduce the same behavior updating a list (click and alt-click red square in the second frame to get the events) and only one event is produced each time.

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: