From 3e7c1a0733e08ca22f4a8613ec9a1cd44c84b114 Mon Sep 17 00:00:00 2001 From: jada Date: Mon, 5 Jun 2006 17:39:39 +0000 Subject: Issue number: Obtained from: Submitted by: Reviewed by: Issue number: Obtained from: Submitted by: Reviewed by: --- .../jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java | 9 ++++++--- 1 file 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); -- cgit v1.2.3