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

[TableView] Focused row changes incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
    • Environment:

      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

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: