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 /src/demos/es1 | |
parent | 3f92d13a9f886b044f8f1c49ff22476e30ba408d (diff) |
Add NEWT WindowListener.windowDestroyed() e7778124162aef7004e040dded5de1eaf5e1ece4
Diffstat (limited to 'src/demos/es1')
-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 |
3 files changed, 5 insertions, 3 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); |