UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch ( Exception e ) { }
//Load Application Context.
ApplicationContext myContext = new ClassPathXmlApplicationContext("trams/spring/context.xml");
//Display splash screen to the user.
SplashScreen ss = (SplashScreen) myContext.getBean("splashScreen");
ss.setStarted();
while ( ss.notFinished() ) {
try { Thread.sleep(1000); } catch ( InterruptedException ie ) { }
}
ss.dispose();
UserInterface ui = new UserInterface();
new WelcomeScreen(ui);
//LoadingScreen ls = new LoadingScreen();
}