!7 static int n = 3; p-subst { swingBiggerFonts(); final JTree tree; tree = jDynamicTree("Root", func(S s) -> L { ll(s + "/child 1", s + "/child 2") }, keepChildrenOnCollapse := true); showFrame(tree); doEvery(5.0, r { jDynamicTree_addToNode(tree, "Root", "child " + n++) }); }