void () { final Enumeration children = myRoot.children(); while (children.hasMoreElements()) { Object o = children.nextElement(); if (o instanceof MyNode) { ((MyNode)o).getConfigurable().disposeUIResources(); } } }