diff options
author | Sven Gothel <[email protected]> | 2010-12-23 07:15:40 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-12-23 07:15:40 +0100 |
commit | e35038cc3c01b6ad8beb559986102c68fde614b6 (patch) | |
tree | eba219736825127a241ac6ef16659f61b32ebe02 | |
parent | 3f92d13a9f886b044f8f1c49ff22476e30ba408d (diff) |
Add NEWT WindowListener.windowDestroyed() e7778124162aef7004e040dded5de1eaf5e1ece4
-rwxr-xr-x | src/demos/es1/RedSquare.java | 6 | ||||
-rwxr-xr-x | src/demos/es1/angeles/Main.java | 1 | ||||
-rwxr-xr-x | src/demos/es1/cubefbo/Main.java | 1 | ||||
-rwxr-xr-x | src/demos/es2/RedSquare.java | 8 | ||||
-rw-r--r-- | src/demos/newt/NEWTTest1.java | 3 | ||||
-rw-r--r-- | src/demos/newt/TaskManagerTest1.java | 3 | ||||
-rw-r--r-- | src/demos/newt/TaskManagerTest2.java | 3 | ||||
-rwxr-xr-x | src/demos/readbuffer/Main.java | 1 |
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); |