switchToStopState();
this.runStopButton.setText(Translator.get("run_dialog.stop"));  outputTextArea.setText("");  outputTextArea.getCaret().setVisible(true); outputTextArea.requestFocus();   repaint();
    public void runCommand(String command) {        try {            currentProcess = Shell.execute(command, mainFrame.getActiveTable().getCurrentFolder(), this);            processInput   = new PrintStream(currentProcess.getOutputStream(), true);            // If command could be executed            // Reset caret position            caretPos = 0;            switchToStopState();        }        catch(Exception e1) {            // Probably should notify the user if the command could not be executed        }    }