]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/threedee/WindowFactory.java
Version 3, August 2007
[GpsPrune.git] / tim / prune / threedee / WindowFactory.java
index 89560efa1b2b7e592c8c7dfa2412bc8bf4b72a23..5a926b76f5d569156acb729b1aca3a25ae94241c 100644 (file)
@@ -31,13 +31,13 @@ public abstract class WindowFactory
        /**
         * @return true if 3d capability is installed
         */
-       private static boolean isJava3dEnabled()
+       public static boolean isJava3dEnabled()
        {
                boolean has3d = false;
                try
                {
                        Class universeClass = Class.forName("com.sun.j3d.utils.universe.SimpleUniverse");
-                       has3d = true;
+                       has3d = (universeClass != null);
                }
                catch (ClassNotFoundException e)
                {