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

[TableView] Focused row changes incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u40
    • 8u20
    • javafx
    • RHEL 6.2, x86_64, JDK 1.7.0_51, but confirmed by jewelsea in 8u20.

    Description

      table.getSelectionModel().select( 0 );
      table.getItems().add( 0, item );

      Selected row goes from 0 to 2 instead of 0 to 1 as expected. Also, when monitoring the tablerow focusedProperty, it goes from 0 to 3 and leaves a blue border around row 3.

      Work around is to save selected index, clear selection, add, the select the desired index.

      More detail here: http://stackoverflow.com/questions/25559022/javafx-tableview-tablerow-focus-behaves-strangely

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: