From 0fe934c011d7189d43be4c9d1e72e67f46de9c30 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 Nov 2010 02:38:31 +0100 Subject: AWT create/destroy shall run on EDT as well --- .../com/jogamp/test/junit/jogl/awt/TestSwingAWT01GLn.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/junit/com/jogamp') diff --git a/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWT01GLn.java b/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWT01GLn.java index 4559ee936..c330d48a0 100644 --- a/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWT01GLn.java +++ b/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWT01GLn.java @@ -106,23 +106,16 @@ public class TestSwingAWT01GLn extends UITestCase { }; - //swing on EDT.. - if(window instanceof JFrame) { - invokeAndWait(test); - }else{ - test.run(); - } + // AWT / Swing on EDT.. + invokeAndWait(test); Animator animator = new Animator(glCanvas[0]); animator.start(); Thread.sleep(500); animator.stop(); - if(window instanceof JFrame) { - invokeAndWait(cleanup); - }else{ - cleanup.run(); - } + // AWT / Swing on EDT.. + invokeAndWait(cleanup); } } -- cgit v1.2.3