Get checked items of a TreeView in JavaFX
JavaFX provides an easy way to implement Java GUIs. Unfortunately, some methods or concepts are missing. I used a TreeView component with CheckBoxTreeItems. When evaluating the input I want to get all checked items from the TreeView, resp. its SelectionModel. The standard method getSelectedItems just returns the selected items, when selecting means the last clicked (i.e. selected) element. Thus I had to write my own code for traversing the tree...