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);
createNodes(); starting = false;  boolean reset = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) reset = true; } if (reset) { SwingUtilities.invokeLater(new Runnable() { public void run() { runButton.setSelected(false); runButton.setEnabled(true); unsetTrialValues(); currentTrial--; } }); } else {   final String glsAgent = findServlet(); if(glsAgent != null) { SwingUtilities.invokeLater(new Runnable() { public void run() { JInternalFrame jif = new JInternalFrame("GLS", true, false, true, true); glsClient = new GLSClient(getOPlanAgentURL(glsAgent)); jif.getContentPane().add(glsClient); jif.setSize(350, 350); jif.setLocation(0, 0); jif.setVisible(true); desktop.add(jif, JLayeredPane.DEFAULT_LAYER); try { jif.setIcon(true); } catch (PropertyVetoException e) { } } });
          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);          }