diff options
Diffstat (limited to 'src/demos/applets')
-rwxr-xr-x | src/demos/applets/JOGLNewtApplet1Run.java | 1 | ||||
-rwxr-xr-x | src/demos/applets/JOGLNewtAppletBase.java | 21 |
2 files changed, 1 insertions, 21 deletions
diff --git a/src/demos/applets/JOGLNewtApplet1Run.java b/src/demos/applets/JOGLNewtApplet1Run.java index 9496155..0490120 100755 --- a/src/demos/applets/JOGLNewtApplet1Run.java +++ b/src/demos/applets/JOGLNewtApplet1Run.java @@ -43,7 +43,6 @@ public class JOGLNewtApplet1Run extends Applet { } base = new JOGLNewtAppletBase(glEventListenerClazzName, glSwapInterval, - false /* pumpMessages == handleWindowEvents */, glDebug, glTrace); 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 <applet> 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); } |