From 8eb70fb10a4f81c93dbc4ed12571a67ffbc1649a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 19 Mar 2023 08:55:47 +0100 Subject: GraphUI UISceneDemo01: Fix disposal, use windowDestroyed() WindowListener to stop animator --- src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java index a2b8f5061..ede9cd829 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java @@ -63,7 +63,7 @@ import com.jogamp.opengl.util.av.GLMediaPlayer; import com.jogamp.opengl.util.av.GLMediaPlayerFactory; /** - * Basic UIScene demo using a single UIShape. + * Res independent Shape, in Scene attached to GLWindow showing simple linear Shape movement w/ listener attached. */ public class UISceneDemo01 { static final boolean DEBUG = false; @@ -233,7 +233,6 @@ public class UISceneDemo01 { } try { Thread.sleep(1000); } catch (final InterruptedException e1) { } System.err.println("The End .."); - animator.stop(); window.destroy(); } -- cgit v1.2.3