diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/org/jdesktop/j3d/examples/lightwave/Viewer.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/classes/org/jdesktop/j3d/examples/lightwave/Viewer.java b/src/classes/org/jdesktop/j3d/examples/lightwave/Viewer.java index 8959d4d..9b99466 100644 --- a/src/classes/org/jdesktop/j3d/examples/lightwave/Viewer.java +++ b/src/classes/org/jdesktop/j3d/examples/lightwave/Viewer.java @@ -160,7 +160,12 @@ public class Viewer extends Applet { public void destroy() { u.cleanup(); } - + + private static void usage() { + System.out.println("Usage: java Viewer <.lws>") ; + System.exit(0) ; + } + /** * The main method of the application takes one argument in the * args array; the filname that you want to load. Note that the @@ -190,15 +195,7 @@ public class Viewer extends Applet { } } else { - // the path to the image for an application - try { - url = new java.net.URL("file:./ballcone.lws"); - } - catch (java.net.MalformedURLException ex) { - System.err.println(ex.getMessage()); - ex.printStackTrace(); - System.exit(1); - } + usage(); } new MainFrame(new Viewer(url), 500, 500); } |