summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/awt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-11-16 05:00:27 +0100
committerSven Gothel <[email protected]>2013-11-16 05:00:27 +0100
commitebed9f0322e2a2279a525e04ee3875c9034a7f45 (patch)
tree40dc28c9896af29b881d3c2fded622514e68d801 /src/jogl/classes/javax/media/opengl/awt
parent0c401343d6280d5de52fbf652d94ad9a47bd9d3c (diff)
Bug 906 - JAWTWindow Component- and HierarchyListener must be detached at JAWTWindow.destroy() - GLCanvas Recreation Case
In case a JAWTWindow owner recreates itself, destroying JAWTWindow must detach the Component- and HierarchyListener from the AWT component! Test TestBug816GLCanvasFrameHoppingB849B889AWT shows properly detaching listener at jawtWindow destruction.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLCanvas.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
index 01d6a6738..36c0144a9 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
@@ -583,6 +583,15 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
}
}
+ @Override
+ public void setVisible(boolean b) {
+ if(DEBUG) {
+ System.err.println(getThreadName()+": Info: setVisible("+b+")");
+ Thread.dumpStack();
+ }
+ super.setVisible(b);
+ }
+
/** Overridden to track when this component is added to a container.
Subclasses which override this method must call
super.addNotify() in their addNotify() method in order to