X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fthreedee%2FWindowFactory.java;h=549c11a1ef97439899d759c22fa1a9fa84cfab90;hb=b361869e590bbca32664c16ac24d6296926594a5;hp=4aef1f613a66fee384e49eaae0948bcdd720d658;hpb=52bf9e8686c916be37a26a0b75340393d4478b05;p=GpsPrune.git diff --git a/tim/prune/threedee/WindowFactory.java b/tim/prune/threedee/WindowFactory.java index 4aef1f6..549c11a 100644 --- a/tim/prune/threedee/WindowFactory.java +++ b/tim/prune/threedee/WindowFactory.java @@ -2,8 +2,6 @@ package tim.prune.threedee; import javax.swing.JFrame; -import tim.prune.App; - /** * Factory class for getting a Window */ @@ -13,16 +11,15 @@ public abstract class WindowFactory /** * Get a Window object - * @param inApp App object * @param inFrame parent frame * @return object if available, otherwise null */ - public static ThreeDWindow getWindow(App inApp, JFrame inFrame) + public static ThreeDWindow getWindow(JFrame inFrame) { if (isJava3dEnabled()) { if (_window == null) { - _window = new Java3DWindow(inApp, inFrame); + _window = new Java3DWindow(inFrame); } else { _window.dispose(); @@ -41,13 +38,17 @@ public abstract class WindowFactory boolean has3d = false; try { - Class universeClass = Class.forName("com.sun.j3d.utils.universe.SimpleUniverse"); + Class universeClass = Class.forName("com.sun.j3d.utils.universe.SimpleUniverse"); has3d = (universeClass != null); } catch (ClassNotFoundException e) { // no java3d classes available } + catch (UnsatisfiedLinkError ule) + { + // java3d available but somehow incompatible? + } return has3d; }