summaryrefslogtreecommitdiffstats
path: root/src/demos/applets/JOGLNewtAppletBase.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-07-16 04:04:37 +0200
committerSven Gothel <[email protected]>2010-07-16 04:04:37 +0200
commit8db35dabaef54b96eb90dde02cacebdeacd50126 (patch)
tree9d7ab9e46d375ca32008aa13341b1ef67638bf59 /src/demos/applets/JOGLNewtAppletBase.java
parent348c43a12199e71017767930b0b42d939db47312 (diff)
Fixes against JOGL a4b16ad544f3f7872f15e52d7ada7dc1e506d333
Diffstat (limited to 'src/demos/applets/JOGLNewtAppletBase.java')
-rwxr-xr-xsrc/demos/applets/JOGLNewtAppletBase.java21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/demos/applets/JOGLNewtAppletBase.java b/src/demos/applets/JOGLNewtAppletBase.java
index a8cb160..4b7377d 100755
--- a/src/demos/applets/JOGLNewtAppletBase.java
+++ b/src/demos/applets/JOGLNewtAppletBase.java
@@ -12,10 +12,9 @@ import com.jogamp.opengl.util.*;
/** Shows how to deploy an applet using JOGL. This demo must be
referenced from a web page via an &lt;applet&gt; tag. */
-public class JOGLNewtAppletBase implements WindowListener, KeyListener, MouseListener, GLEventListener {
+public class JOGLNewtAppletBase extends WindowAdapter implements KeyListener, MouseListener, GLEventListener {
String glEventListenerClazzName;
int glSwapInterval;
- boolean handleWindowEvents;
boolean glDebug;
boolean glTrace;
@@ -26,13 +25,11 @@ public class JOGLNewtAppletBase implements WindowListener, KeyListener, MouseLis
public JOGLNewtAppletBase(String glEventListenerClazzName,
int glSwapInterval,
- boolean handleWindowEvents,
boolean glDebug,
boolean glTrace) {
this.glEventListenerClazzName=glEventListenerClazzName;
this.glSwapInterval=glSwapInterval;
- this.handleWindowEvents=handleWindowEvents;
this.glDebug = glDebug;
this.glTrace = glTrace;
}
@@ -126,7 +123,6 @@ public class JOGLNewtAppletBase implements WindowListener, KeyListener, MouseLis
}
glWindow.addKeyListener(this);
- glWindow.setRunPumpMessages(handleWindowEvents);
glWindow.enablePerfLog(true);
// glAnimator = new FPSAnimator(canvas, 60);
@@ -200,21 +196,6 @@ public class JOGLNewtAppletBase implements WindowListener, KeyListener, MouseLis
// ***********************************************************************************
// ***********************************************************************************
- public void windowResized(WindowEvent e) {
- }
-
- public void windowMoved(WindowEvent e) {
- }
-
- public void windowDestroyNotify(WindowEvent e) {
- }
- public void windowGainedFocus(WindowEvent e) { }
- public void windowLostFocus(WindowEvent e) { }
-
- // ***********************************************************************************
- // ***********************************************************************************
- // ***********************************************************************************
-
public void keyPressed(KeyEvent e) {
System.out.println(e);
}