if (nodeCreator == null) return; addStatusButton(nci.statusButton); ConsoleInternalFrame frame = new ConsoleInternalFrame(nci.nodeName, nci.hostName, nci.properties, nci.args, (ConsoleNodeListener)nci.listener, nci.scrollPane, nci.statusButton, nci.logFileName, remoteNode, console); frame.addInternalFrameListener(new NodeFrameListener()); desktop.addNodeFrame(frame, nci.nodeName); updateControls(true);
RemoteProcess remoteNode; synchronized (runningNodesLock) { remoteNode = (RemoteProcess)runningNodes.get(nodeName); } if (remoteNode == null) { if(log.isErrorEnabled()) { log.error("Unknown node name: " + nodeName); } return;
          public void run() {            // don't create gui controls if node creation has been stopped            if (nodeCreator == null) return;            addStatusButton(nci.statusButton);            ConsoleInternalFrame frame =               new ConsoleInternalFrame(nci.nodeName,                                       nci.hostName,                                       nci.properties,                                       nci.args,                                       (ConsoleNodeListener)nci.listener,                                       nci.scrollPane,                                       nci.statusButton,                                       nci.logFileName,                                       remoteNode,                                       console);            frame.addInternalFrameListener(new NodeFrameListener());            desktop.addNodeFrame(frame, nci.nodeName);            updateControls(true);          }