summaryrefslogtreecommitdiffstats
path: root/src/demos
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos')
-rwxr-xr-xsrc/demos/es1/RedSquare.java6
-rwxr-xr-xsrc/demos/es1/angeles/Main.java1
-rwxr-xr-xsrc/demos/es1/cubefbo/Main.java1
-rwxr-xr-xsrc/demos/es2/RedSquare.java8
-rw-r--r--src/demos/newt/NEWTTest1.java3
-rw-r--r--src/demos/newt/TaskManagerTest1.java3
-rw-r--r--src/demos/newt/TaskManagerTest2.java3
-rwxr-xr-xsrc/demos/readbuffer/Main.java1
8 files changed, 18 insertions, 8 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index a0faf9b..1049ee7 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -40,13 +40,10 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
public void windowRepaint(WindowUpdateEvent e) {
}
-
public void windowResized(WindowEvent e) {
}
-
public void windowMoved(WindowEvent e) {
}
-
public void windowDestroyNotify(WindowEvent e) {
System.out.println("WINDOW-DESTROY NOTIFY "+Thread.currentThread()+" QUIT "+e);
quit=true;
@@ -54,6 +51,9 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
glAnimator.stop();
}
}
+ public void windowDestroyed(WindowEvent e) {
+ System.out.println("WINDOW-DESTROYED "+Thread.currentThread());
+ }
public void windowGainedFocus(WindowEvent e) { }
public void windowLostFocus(WindowEvent e) { }
diff --git a/src/demos/es1/angeles/Main.java b/src/demos/es1/angeles/Main.java
index 495ecc1..743f961 100755
--- a/src/demos/es1/angeles/Main.java
+++ b/src/demos/es1/angeles/Main.java
@@ -19,6 +19,7 @@ public class Main implements WindowListener, MouseListener {
public void windowDestroyNotify(WindowEvent e) {
quit = true;
}
+ public void windowDestroyed(WindowEvent e) { }
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() > 1) {
diff --git a/src/demos/es1/cubefbo/Main.java b/src/demos/es1/cubefbo/Main.java
index 55261fd..cd26556 100755
--- a/src/demos/es1/cubefbo/Main.java
+++ b/src/demos/es1/cubefbo/Main.java
@@ -19,6 +19,7 @@ public class Main implements WindowListener, MouseListener {
public void windowDestroyNotify(WindowEvent e) {
quit = true;
}
+ public void windowDestroyed(WindowEvent e) { }
public void mouseClicked(MouseEvent e) {
System.out.println("mouseevent: "+e);
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 54c44eb..1d0bcad 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -32,19 +32,17 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
}
public void windowRepaint(WindowUpdateEvent e) { }
-
public void windowResized(WindowEvent e) { }
-
public void windowMoved(WindowEvent e) { }
-
public void windowGainedFocus(WindowEvent e) { }
-
public void windowLostFocus(WindowEvent e) { }
-
public void windowDestroyNotify(WindowEvent e) {
System.out.println("WINDOW-DESTROY NOTIFY "+Thread.currentThread()+" QUIT "+e);
quit = true;
}
+ public void windowDestroyed(WindowEvent e) {
+ System.out.println("WINDOW-DESTROYED "+Thread.currentThread());
+ }
public void keyPressed(KeyEvent e) {
System.out.println("KEY-PRESSED "+Thread.currentThread()+" UNHANDLED "+e);
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java
index 23bc914..3bcd260 100644
--- a/src/demos/newt/NEWTTest1.java
+++ b/src/demos/newt/NEWTTest1.java
@@ -37,6 +37,9 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
// stop running ..
running = false;
}
+ public void windowDestroyed(WindowEvent e) {
+ System.err.println("windowDestroyed "+e);
+ }
boolean running = true;
public void keyPressed(KeyEvent e) {
diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java
index ff8ae00..cc71f63 100644
--- a/src/demos/newt/TaskManagerTest1.java
+++ b/src/demos/newt/TaskManagerTest1.java
@@ -51,6 +51,9 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
eventMgr.stop();
System.err.println("Window Event Listener DestroyNotify send stop request - DONE");
}
+ public void windowDestroyed(WindowEvent e) {
+ System.err.println("windowDestroyed "+e);
+ }
public void keyPressed(KeyEvent e) {
System.err.println("keyPressed "+e);
}
diff --git a/src/demos/newt/TaskManagerTest2.java b/src/demos/newt/TaskManagerTest2.java
index 03fff2d..19a01e3 100644
--- a/src/demos/newt/TaskManagerTest2.java
+++ b/src/demos/newt/TaskManagerTest2.java
@@ -34,6 +34,9 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
TaskToolWM.unregisterWindowEvent((Window)e.getSource());
System.err.println("Window Event Listener DestroyNotify send stop request - DONE");
}
+ public void windowDestroyed(WindowEvent e) {
+ System.err.println("windowDestroyed "+e);
+ }
public void keyPressed(KeyEvent e) {
System.err.println("keyPressed "+e);
diff --git a/src/demos/readbuffer/Main.java b/src/demos/readbuffer/Main.java
index 1593817..426bdd7 100755
--- a/src/demos/readbuffer/Main.java
+++ b/src/demos/readbuffer/Main.java
@@ -27,6 +27,7 @@ public class Main implements WindowListener, MouseListener, SurfaceUpdatedListen
System.err.println("********** quit **************");
quit = true;
}
+ public void windowDestroyed(WindowEvent e) { }
public void mouseClicked(MouseEvent e) {
System.out.println("mouseevent: "+e);