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

Sorting a table column leaves the selection model inconsistent with the display in the UI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 7u15, 8
    • javafx
    • JavaFX 2.2.27 under JDK 1.7.0_17, and JavaFX 8.0.0 under JDK 1.8.0b87; both on Mac OS X 10.7.5.

    Description

      If a table row is selected and then the table is sorted (by clicking on a column header), the selection model is updated to indicate that the selection is cleared. However, the display still shows the same item as being selected.

      To reproduce, run the following sample.
      Select one row in the table.
      Click on the column header to sort by that row. Note that the item remains highlighted, indicating it is selected.
      Press the button to dump the selection model data. Note that the selectedIndex is -1 and the selectedItem is null.

      OTN forum discussion here: https://forums.oracle.com/forums/thread.jspa?forumID=1385&threadID=2531317

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              jdenvirjfx James Denvir (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: