diff options
author | jada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2006-02-14 21:49:14 +0000 |
---|---|---|
committer | jada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2006-02-14 21:49:14 +0000 |
commit | 825c6befcfc363fc14ab406f300686caa623b59a (patch) | |
tree | 2f4db346111343842d31d47debadbad256d1edad /src/classes/org/jdesktop/j3d | |
parent | 971762138bef7ad540026e9fb77e1018f9d23828 (diff) |
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.
Diffstat (limited to 'src/classes/org/jdesktop/j3d')
-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); } |