Permutation of scene graph children

Tomas Mikula tomas.mikula at
Tue Dec 2 16:50:58 UTC 2014

Hi Werner,

On Tue, Dec 2, 2014 at 11:50 AM, Werner Lehmann
<lehmann at> wrote:
> Tom,
> I know about Collections.swap but it looks like a bad idea to use on scene
> graph children because it seems to temporarily have a duplicate element in
> the list and I can't have a node twice in the scene graph. The setAll
> approach is what I am using now but native permutation or swap support would
> be better because it does not remove/add nodes, triggering CSS and possibly
> some listeners on scene or parent properties.

note that if JavaFX is ever going to support CSS selectors like
:first-child, :nth-child(), etc., it will be necessary to re-apply CSS
even for a permutation.


More information about the openjfx-dev mailing list