Detecting when a TreeItem is no more used

Fabrizio Giudici Fabrizio.Giudici at
Fri Jul 26 12:45:35 PDT 2013

On Fri, 26 Jul 2013 13:47:50 +0200, Tom Schindl  
<tom.schindl at> wrote:

> Not sure but what is reused is the TreeCell, the TreeItem is not freed
> and has to exists as long as you show the tree!

	TreeItem<...> i1 = new TreeItem<...>();

	TreeItem<...> i2 = new TreeItem<...>();

I'd say that when you change the root to i2, i1 is no more needed, right?

Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere." - fabrizio.giudici at

More information about the openjfx-dev mailing list