outputTextArea.setCaretPosition(0);
    public void runCommand(String command) {        inputCombo.setEnabled(false);        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;            // Change 'Run' button to 'Stop'            this.runStopButton.setText(Translator.get("run_dialog.stop"));            // Clear text area            outputTextArea.setText("");            outputTextArea.getCaret().setVisible(true);            outputTextArea.requestFocus();            // Repaint the dialog            repaint();        }        catch(Exception e1) {            // Probably should notify the user if the command could not be executed        }    }