summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-12-12 21:56:57 +0100
committerSven Gothel <[email protected]>2010-12-12 21:56:57 +0100
commit385fe4259752e9ee63bfd6fdd5fc1c49a3d2109d (patch)
tree8da85b65c3c6b00930bcdc0f518fa7565bf52203 /src
parent36822056c0a4adbec74676f135f87105aaa0b3b8 (diff)
Add GearsApplet applet lifecycle message
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/applets/GearsApplet.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/demos/applets/GearsApplet.java b/src/demos/applets/GearsApplet.java
index 73bef96..046f117 100755
--- a/src/demos/applets/GearsApplet.java
+++ b/src/demos/applets/GearsApplet.java
@@ -15,6 +15,7 @@ public class GearsApplet extends Applet {
private GLAnimatorControl animator;
public void init() {
+ System.err.println("GearsApplet: init() - begin");
GLProfile.initSingleton(false);
setLayout(new BorderLayout());
GLCanvas canvas = new GLCanvas();
@@ -22,14 +23,23 @@ public class GearsApplet extends Applet {
canvas.setSize(getSize());
add(canvas, BorderLayout.CENTER);
animator = new FPSAnimator(canvas, 60);
+ System.err.println("GearsApplet: init() - end");
}
public void start() {
+ System.err.println("GearsApplet: start() - begin");
animator.start();
+ System.err.println("GearsApplet: start() - end");
}
public void stop() {
// FIXME: do I need to do anything else here?
+ System.err.println("GearsApplet: stop() - begin");
animator.stop();
+ System.err.println("GearsApplet: stop() - end");
+ }
+
+ public void destroy() {
+ System.err.println("GearsApplet: destroy() - X");
}
}