01: package net.xoetrope.swt.demo;
02:
03: import java.io.File;
04: import java.io.FileNotFoundException;
05: import java.io.FileOutputStream;
06: import java.io.PrintStream;
07: import net.xoetrope.swt.splash.XSplashWindow;
08:
09: /*
10: * MainSplasher.java
11: *
12: * Created on 25 August 2006, 10:31
13: *
14: * To change this template, choose Tools | Template Manager
15: * and open the template in the editor.
16: */
17:
18: /**
19: *
20: * @author romainl
21: * @see http://www.randelshofer.ch/oop/javasplash/javasplash.html
22: */
23: public class MainSplasher {
24:
25: /**
26: * Shows the splash screen, launches the application and then disposes
27: * the splash screen.
28: * @param args the command line arguments
29: */
30: public static void main(String[] args) {
31: XSplashWindow.splash(MainSplasher.class
32: .getResource("XUI_I_S_M.gif"));
33: String[] appArgs = new String[args.length - 1];
34: for (int i = 1; i < args.length; i++)
35: appArgs[i - 1] = args[i];
36: XSplashWindow.disposeSplash(8000);
37: XSplashWindow.invokeMain(args[0], appArgs);
38: }
39: }
|