RT-24371 or just a documentation issue?

Scott Palmer swpalmer at gmail.com
Thu Feb 13 12:40:42 PST 2014


 // How NOT to do this
private void removeSelectedListItemsBAD(ListView list) {
list.getItems().removeAll(list.getSelectionModel().getSelectedItems());
list.getSelectionModel().clearSelection();
}

Can you spot the flaw?

Hint... Try it on a list, but only select the first item.

Related issue: RT-24371

Scott


More information about the openjfx-dev mailing list