public void nimpSmartCardShell(String[] args) throws FileNotFoundException, IOException, InterruptedException, ScardException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
long start = System.nanoTime();
ATextScreenOutputJFrame mainWindow;
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
final SplashScreen splash = SplashScreen.getSplashScreen();
PipedOutputStream pos = new PipedOutputStream();
PrintStream outputStream = new PrintStream(pos);
mainWindow = new ATextScreenOutputJFrame(true);
mainWindow.monitorStream(pos);
mainWindow.setTitle(ATimeUtilities.getTimeForUi() + " - Nimp smart card script player");
System.setOut(outputStream);
System.setErr(outputStream);
if (splash != null) {
splash.close();
}
mainWindow.setExtendedState(JFrame.MAXIMIZED_BOTH);
mainWindow.setBackground(mainWindow.getBackground());//this get the system color for window background and apply it to the log area
mainWindow.setVisible(true);