Detecting when a TreeItem is no more used

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


On Fri, 26 Jul 2013 13:47:50 +0200, Tom Schindl  
<tom.schindl at bestsolution.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<...>();
         treeView.setRoot(i1);

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

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."
http://tidalwave.it/fabrizio/blog - fabrizio.giudici at tidalwave.it


More information about the openjfx-dev mailing list