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

[TableView] TableView selection problem with SHIFT (visual not updated)

XMLWordPrintable

      When doing a selection with shift (in fact, just a "selectionRange") on a single row, the cells visuals are not updated. The cells are indeed selected, but we cannot see that.

      Run this sample : http://pastebin.com/5yJWeP83 (which is just the official TableViewSample with multiple cell selection enabled).

      Click on the first cell. Then hold SHIFT and click on the third cell on the same row. Nothing is highlighted apart for the third cell which has the focus.

      Now if you click on the first cell, and click on the third cell of the second row while holding SHIFT, you will see that the selection is well done.

      Since the cells are well selected in any way, I believe this is just a problem with the pseudo-class "selected" which is not applied somewhere..

      This is a regression and a bit annoying. Tested with Jdk 8u20 b23.

            jgiles Jonathan Giles
            shadzic Samir Hadzic
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: