]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/threedee/WindowFactory.java
Version 6, October 2008
[GpsPrune.git] / tim / prune / threedee / WindowFactory.java
index 5a926b76f5d569156acb729b1aca3a25ae94241c..4aef1f613a66fee384e49eaae0948bcdd720d658 100644 (file)
@@ -9,7 +9,7 @@ import tim.prune.App;
  */
 public abstract class WindowFactory
 {
-       private static ThreeDWindow _window = null;
+       private static Java3DWindow _window = null;
 
        /**
         * Get a Window object
@@ -21,7 +21,12 @@ public abstract class WindowFactory
        {
                if (isJava3dEnabled())
                {
-                       if (_window == null) _window = new Java3DWindow(inApp, inFrame);
+                       if (_window == null) {
+                               _window = new Java3DWindow(inApp, inFrame);
+                       }
+                       else {
+                               _window.dispose();
+                       }
                        return _window;
                }
                return null;