X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fthreedee%2FWindowFactory.java;h=5a926b76f5d569156acb729b1aca3a25ae94241c;hp=89560efa1b2b7e592c8c7dfa2412bc8bf4b72a23;hb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b;hpb=23959e65a6a0d581e657b07186d18b7a1ac5afeb diff --git a/tim/prune/threedee/WindowFactory.java b/tim/prune/threedee/WindowFactory.java index 89560ef..5a926b7 100644 --- a/tim/prune/threedee/WindowFactory.java +++ b/tim/prune/threedee/WindowFactory.java @@ -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) {