summaryrefslogtreecommitdiffstats
path: root/src/demos/applets/RedSquareNEWTAWTApplet.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-09-14 06:12:33 -0700
committerSven Gothel <[email protected]>2009-09-14 06:12:33 -0700
commite7003e596519e225ecec5b4423314c4dcaa05db8 (patch)
tree86fe34ddea1f6b3e6a76bcd64453c6572718b49c /src/demos/applets/RedSquareNEWTAWTApplet.java
parent2166980a1d7f4b107571a5bdcff648718b21662f (diff)
NEWT Applet work ..
Diffstat (limited to 'src/demos/applets/RedSquareNEWTAWTApplet.java')
-rwxr-xr-xsrc/demos/applets/RedSquareNEWTAWTApplet.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/demos/applets/RedSquareNEWTAWTApplet.java b/src/demos/applets/RedSquareNEWTAWTApplet.java
deleted file mode 100755
index dce71ca..0000000
--- a/src/demos/applets/RedSquareNEWTAWTApplet.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package demos.applets;
-
-import java.applet.*;
-import java.awt.*;
-import demos.gears.Gears;
-import javax.media.opengl.awt.GLCanvas;
-import com.sun.opengl.util.Animator;
-import com.sun.opengl.util.FPSAnimator;
-
-/** 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 RedSquareNEWTAWTApplet extends Applet {
- private Animator animator;
-
- public void init() {
- setLayout(new BorderLayout());
- GLCanvas canvas = new GLCanvas();
- canvas.addGLEventListener(new Gears());
- canvas.setSize(getSize());
- add(canvas, BorderLayout.CENTER);
- animator = new FPSAnimator(canvas, 60);
- }
-
- public void start() {
- animator.start();
- }
-
- public void stop() {
- // FIXME: do I need to do anything else here?
- animator.stop();
- }
-}