-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
8
-
b118, Windows 7 x64
Earlier JavaFX was throwing an exception when node was added to the scenegraph twice.
Currently it doesn't if the parent is different: automatic reparenting happens.
However if the parent is the same then duplicate node exception is thrown.
This is inconsistent and inconvenient as you always need to check whether this node is already present for this parent.
A consistent behavior would be to move it in the children's list to the specified position (or to the end if position is not specified). Similar to removing from original parent.
Currently it doesn't if the parent is different: automatic reparenting happens.
However if the parent is the same then duplicate node exception is thrown.
This is inconsistent and inconvenient as you always need to check whether this node is already present for this parent.
A consistent behavior would be to move it in the children's list to the specified position (or to the end if position is not specified). Similar to removing from original parent.