aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/org/jdesktop/j3d/examples/lightwave
diff options
context:
space:
mode:
authorkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-03-07 17:42:45 +0000
committerkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-03-07 17:42:45 +0000
commitd2f4b6c478a34d0089711a7bb8286bd0d04abbfb (patch)
tree535d86f45afccd54017d7f9a647302d1409d4312 /src/classes/org/jdesktop/j3d/examples/lightwave
parent19e30a5771eb1ec413e562c0d99b6263978dfba0 (diff)
Merged changes between 1.4.0-beta4 and 1.4.0-fcs into dev-1_5 branch
Diffstat (limited to 'src/classes/org/jdesktop/j3d/examples/lightwave')
-rw-r--r--src/classes/org/jdesktop/j3d/examples/lightwave/Viewer.java17
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);
}