Javafx table view multiple selection sometimes skips one of the items

前端 未结 1 1548
抹茶落季
抹茶落季 2021-01-15 04:42

I have created a table view in javafx for my custom object. I have enabled multiple selection in the code by doing: table.getSelectionModel().setSelectionMode(Selecti

相关标签:
1条回答
  • 2021-01-15 05:10

    Apparently it's a bug, already fixed for version 9 (and also 8u112, if I understand correctly): https://bugs.openjdk.java.net/browse/JDK-8144501

    A workaround for now is to use getSelectedIndices(), then get the items corresponding to these instances from table.getItems()

    0 讨论(0)
提交回复
热议问题