diff options
author | Sven Gothel <[email protected]> | 2010-11-04 02:38:31 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-04 02:38:31 +0100 |
commit | 0fe934c011d7189d43be4c9d1e72e67f46de9c30 (patch) | |
tree | bcb205c22a93e974460433886c156f2dcbdf0171 /src | |
parent | dc4a31054dc83073ccd5093dfb947dbade13789b (diff) |
AWT create/destroy shall run on EDT as well
Diffstat (limited to 'src')
-rw-r--r-- | src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWT01GLn.java | 15 |
1 files changed, 4 insertions, 11 deletions
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); } } |