From 825c6befcfc363fc14ab406f300686caa623b59a Mon Sep 17 00:00:00 2001 From: jada Date: Tue, 14 Feb 2006 21:49:14 +0000 Subject: 1) Moved the copying of resources and shader files from the target "jar" to "compile". 2) Removed default lws file arguement option in commandline execution. --- .../org/jdesktop/j3d/examples/lightwave/Viewer.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3