Java Application freezes.
Sample:
A simple Application with two Buttons and a TreeView (Sceneroot is just a VBox).
Button 1: Add a new TreeItem to TreeView.
Button 2: Remove TreeItem from VBox
Scenario:
Add a new TreeItem to the TreeView's root (Button 1) and then select it. Remove the TreeView from VBox (Button 2). Then add three (!) more TreeItems to the TreeView and the Application freezes.
After some time, a OutOfMemory Exception is thrown. As I figured out, there seems to be a problem with the updateItem method from the TreeCell, because its called infinite times.
Sample:
A simple Application with two Buttons and a TreeView (Sceneroot is just a VBox).
Button 1: Add a new TreeItem to TreeView.
Button 2: Remove TreeItem from VBox
Scenario:
Add a new TreeItem to the TreeView's root (Button 1) and then select it. Remove the TreeView from VBox (Button 2). Then add three (!) more TreeItems to the TreeView and the Application freezes.
After some time, a OutOfMemory Exception is thrown. As I figured out, there seems to be a problem with the updateItem method from the TreeCell, because its called infinite times.