Iterator nodeComponents = oldNodes.iterator(); while (nodeComponents.hasNext()) { NodeComponent nodeComponent = (NodeComponent)nodeComponents.next(); String nodeName = nodeComponent.getShortName();
Iterator nodeNames = oldNodes.iterator(); while (nodeNames.hasNext()) { String nodeName = (String)nodeNames.next();
  private void destroyOldNodes() {    Iterator nodeComponents = oldNodes.iterator();    while (nodeComponents.hasNext()) {      NodeComponent nodeComponent = (NodeComponent)nodeComponents.next();      String nodeName = nodeComponent.getShortName();      removeStatusButton(nodeName);    }    oldNodes.clear();    nodeListeners.clear();    nodePanes.clear();    JInternalFrame[] frames = desktop.getAllFrames();    for (int i = 0; i < frames.length; i++) {      String s = frames[i].getTitle();      if (!s.equals("Configuration") && !s.equals("Trial Values"))        frames[i].dispose();    }  }