private static JWindow createSplashScreen(BufferedImage splashImage) {
		if (splashImage != null) {
			JWindow splashScreen = new JWindow();
			splashScreen.getContentPane().add(
					new JLabel(new ImageIcon(splashImage)));
			splashScreen.pack();
			splashScreen.setLocationRelativeTo(null);
			splashScreen.setVisible(true);
			return splashScreen;
		}
		return null;
	}