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

[TableView] ChoiceBoxTableCell causes exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • jdk1.8.0b73

      In the table there is column "Departments" where the value is chosen from choice box.

      To reproduce the bug:
      1. Double click two times on department cell in the first or in the second row.

      You'll get:

      java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
      at java.util.ArrayList.rangeCheck(ArrayList.java:603)
      at java.util.ArrayList.get(ArrayList.java:381)
      at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:63)
      at com.sun.javafx.collections.VetoableListDecorator.get(VetoableListDecorator.java:246)
      at com.sun.javafx.scene.control.skin.ContextMenuContent.getMenuYOffset(ContextMenuContent.java:768)
      at com.sun.javafx.scene.control.skin.ChoiceBoxSkin.handleControlPropertyChanged(ChoiceBoxSkin.java:236)
      at javafx.scene.control.SkinBase$2.call(SkinBase.java:188)

            jgiles Jonathan Giles
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: