javafx listview and treeview controls are not repainted correctly
Your cell factory’s updateItem(…) needs to handle the case where the cell is empty. This will be exactly the scenario when an item is removed (or becomes empty because a node in the TreeView was collapsed) and the cell that previously showed an item is reused as an empty cell: public ListCell<T> call(final ListView<T> param) … Read more