PipedOutputStream pos = new PipedOutputStream();
PrintStream outputStream = new PrintStream(pos);
mainWindow = new ATextScreenOutputJFrame(true);
//Font outputFont=new Font("Monospaced", 0, 10);
//mainWindow.setFont(outputFont);
mainWindow.monitorStream(pos);
mainWindow.setTitle(ATimeUtilities.getTimeForUi() + " - Nimp smart card script player (build "+getBuildNumber()+")");
System.setOut(outputStream);
System.setErr(outputStream);