getRootPane().setDefaultButton(runStopButton);  ThemeManager.addThemeListener(this);  inputCombo.setEnabled(true); showDialog();
setMinimumSize(MINIMUM_DIALOG_DIMENSION);
    public RunDialog(MainFrame mainFrame) {        super(mainFrame, Translator.get("com.mucommander.ui.action.RunCommandAction.label"), mainFrame);        this.mainFrame = mainFrame;		        Container contentPane = getContentPane();        YBoxPanel mainPanel = new YBoxPanel();        JLabel label;        if(mainFrame.getActiveTable().getCurrentFolder() instanceof com.mucommander.file.FSFile)            label = new JLabel(Translator.get("run_dialog.run_command_description")+":");        else            label = new JLabel(Translator.get("run_dialog.run_in_home_description")+":");        mainPanel.add(label);        inputCombo = new ShellComboBox(this);        mainPanel.add(inputCombo);        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);        outputTextArea.setForeground(ThemeManager.getCurrentColor(Theme.SHELL_TEXT));        outputTextArea.setCaretColor(ThemeManager.getCurrentColor(Theme.SHELL_TEXT));        outputTextArea.setBackground(ThemeManager.getCurrentColor(Theme.SHELL_BACKGROUND));        outputTextArea.setSelectedTextColor(ThemeManager.getCurrentColor(Theme.SHELL_TEXT_SELECTED));        outputTextArea.setSelectionColor(ThemeManager.getCurrentColor(Theme.SHELL_BACKGROUND_SELECTED));        outputTextArea.setFont(ThemeManager.getCurrentFont(Theme.SHELL));        JScrollPane scrollPane = new JScrollPane(outputTextArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);        contentPane.add(scrollPane, BorderLayout.CENTER);		        // Buttons panel        XBoxPanel buttonsPanel;        buttonsPanel      = new XBoxPanel();        clearButton   = new JButton(Translator.get("run_dialog.clear_history"));        runStopButton = new JButton(Translator.get("run_dialog.run"));        cancelButton  = new JButton(Translator.get("cancel"));        clearButton.addActionListener(this);        buttonsPanel.add(clearButton);        buttonsPanel.add(Box.createHorizontalGlue());        buttonsPanel.add(DialogToolkit.createOKCancelPanel(runStopButton, cancelButton, this));        contentPane.add(buttonsPanel, BorderLayout.SOUTH);        // Path field will receive initial focus        setInitialFocusComponent(inputCombo);			        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();                    }                }            });        // Make the 'Run/stop' button the default button        getRootPane().setDefaultButton(runStopButton);        ThemeManager.addThemeListener(this);                inputCombo.setEnabled(true);        showDialog();    }