01: package com.xoetrope.swing;
02:
03: import net.xoetrope.swing.splash.XSplashWindow;
04:
05: /*
06: * @(#)XSplasher.java 2.0 January 31, 2004
07: *
08: * Copyright (c) 2003-2004 Werner Randelshofer
09: * Staldenmattweg 2, Immensee, CH-6405, Switzerland.
10: * This software is in the public domain.
11: */
12:
13: /**
14: *
15: * @author werni
16: * @see http://www.randelshofer.ch/oop/javasplash/javasplash.html
17: */
18: public class XSplasher {
19: /**
20: * Shows the splash screen, launches the application and then disposes
21: * the splash screen.
22: * @param args the command line arguments
23: */
24: public static void main(String[] args) {
25: XSplashWindow.splash(XSplasher.class.getResource("splash.gif"));
26: String[] appArgs = new String[args.length - 1];
27: for (int i = 1; i < args.length; i++)
28: appArgs[i - 1] = args[i];
29: XSplashWindow.invokeMain(args[0], appArgs);
30: XSplashWindow.disposeSplash(8000);
31: }
32: }
|