aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-11 05:38:57 +0100
committerSven Gothel <[email protected]>2011-12-11 05:38:57 +0100
commit567bc6a7266ca782051e052b8bab732fc8f92671 (patch)
tree4c1d631dfff42e62d57e8c8e7e5d819d8bfb59e2 /src/newt
parent395d572d4018ff474520b7157038d1769bff857d (diff)
JOGLNewtApplet1Run: Config and add GLEventListener before hooking GLWindow/NewtCanvasAWT to AWT Applet Container
Diffstat (limited to 'src/newt')
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java b/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java
index 105f8369a..a052f6f97 100755
--- a/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java
+++ b/src/newt/classes/com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.java
@@ -188,13 +188,6 @@ public class JOGLNewtApplet1Run extends Applet {
container.add(new Button("East"), BorderLayout.EAST);
container.add(new Button("West"), BorderLayout.WEST);
}
- if(glStandalone) {
- newtCanvasAWT = null;
- } else {
- newtCanvasAWT = new NewtCanvasAWT(glWindow);
- container.add(newtCanvasAWT, BorderLayout.CENTER);
- container.validate();
- }
base.init(glWindow);
if(base.isValid()) {
GLEventListener glEventListener = base.getGLEventListener();
@@ -209,6 +202,13 @@ public class JOGLNewtApplet1Run extends Applet {
addKeyListener((KeyListener)glEventListener);
}
}
+ if(glStandalone) {
+ newtCanvasAWT = null;
+ } else {
+ newtCanvasAWT = new NewtCanvasAWT(glWindow);
+ container.add(newtCanvasAWT, BorderLayout.CENTER);
+ container.validate();
+ }
} catch (Throwable t) {
throw new RuntimeException(t);
}