summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-06-05 17:39:39 +0000
committerjada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-06-05 17:39:39 +0000
commit3e7c1a0733e08ca22f4a8613ec9a1cd44c84b114 (patch)
tree6a67c87452c581d223e3a60888d28c0f5eb7d435
parentd5ef5d8942c78d20a88d60f4e0defd5664d7cdcb (diff)
Issue number:
Obtained from: Submitted by: Reviewed by: Issue number: Obtained from: Submitted by: Reviewed by:
-rw-r--r--src/classes/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/classes/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java b/src/classes/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java
index 16d1060..8cd44bb 100644
--- a/src/classes/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java
+++ b/src/classes/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java
@@ -189,9 +189,12 @@ public class ConfigObjLoad {
// Get the config file URL from the j3d.configURL property or use the
// default config file "j3d1x1-window" in the current directory.
- //URL configURL = ConfiguredUniverse.getConfigURL("file:j3d1x1-window");
- URL configURL = Resources.getResource("configured_universe/j3d1x1-windows.cfg");
- // Create a simple scene and attach it to the virtual universe
+ URL configURL = ConfiguredUniverse.getConfigURL(null);
+ if(configURL == null) {
+ configURL = Resources.getResource("configured_universe/j3d1x1-window.cfg");
+ }
+
+ // Create a simple scene and attach it to the virtual universe
BranchGroup scene = createSceneGraph();
u = new ConfiguredUniverse(configURL);