try {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
consoleFrame = new ProcessConsoleFrame(CONSOLE_NUM_LINES, true);
consoleFrame.setProcess(process);
consoleFrame.setVisible(true);
MessageLog messageLog = consoleFrame.getMessageLog();
messageLog.consume(process.getInputStream());
messageLog.consume(process.getErrorStream());