processMonitor.stopMonitoring();
    public RunDialog(MainFrame mainFrame) {        super(mainFrame, Translator.get("run_dialog.run_command"), mainFrame);        this.mainFrame = mainFrame;		        Container contentPane = getContentPane();        YBoxPanel mainPanel = new YBoxPanel();		        JLabel label = new JLabel(Translator.get("run_dialog.run_command_description")+":");        mainPanel.add(label);        inputField = new ShellComboBox(this);        mainPanel.add(inputField);        mainPanel.addSpace(10);        contentPane.add(mainPanel, BorderLayout.NORTH);        mainPanel.add(new JLabel(Translator.get("run_dialog.command_output")+":"));        outputTextArea = new JTextArea();        outputTextArea.setLineWrap(true);        outputTextArea.setRows(10);        outputTextArea.setEditable(false);        outputTextArea.addKeyListener(this);        // Set custom text, selected text, background and selection background colors        Color textColor = ConfigurationManager.getVariableColor(TEXT_COLOR_VAR, DEFAULT_TEXT_COLOR);        outputTextArea.setForeground(textColor);        // Selected text color and text color are the same        outputTextArea.setSelectedTextColor(textColor);        outputTextArea.setBackground(ConfigurationManager.getVariableColor(BACKGROUND_COLOR_VAR, DEFAULT_BACKGROUND_COLOR));        outputTextArea.setSelectionColor(ConfigurationManager.getVariableColor(SELECTION_BACKGROUND_COLOR_VAR, DEFAULT_SELECTION_BACKGROUND_COLOR));        // Use a monospaced font in the command field and process output text area, as most terminals do.        // The logical "Monospaced" font name is always available in Java.        // The font size is the one of the default JTextArea, style is plain.        Font monospacedFont = new Font("Monospaced", Font.PLAIN, outputTextArea.getFont().getSize());        outputTextArea.setFont(monospacedFont);        JScrollPane scrollPane = new JScrollPane(outputTextArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);        contentPane.add(scrollPane, BorderLayout.CENTER);		        // Run / Cancel buttons panel        runStopButton = new JButton(Translator.get("run_dialog.run"));        cancelButton = new JButton(Translator.get("cancel"));        contentPane.add(DialogToolkit.createOKCancelPanel(runStopButton, cancelButton, this), BorderLayout.SOUTH);        // Path field will receive initial focus        setInitialFocusComponent(inputField);					        setMinimumSize(MINIMUM_DIALOG_DIMENSION);        //		setMaximumSize(MAXIMUM_DIALOG_DIMENSION);        // Closing this dialog kills the process        addWindowListener(new WindowAdapter() {                public void windowClosed(WindowEvent e) {                    if(currentProcess!=null) {                        processInput.close();                        currentProcess.destroy();                        processMonitor.stopMonitoring();                    }                }            });        inputField.setEnabled(true);        showDialog();    }