diff options
Diffstat (limited to 'src/demos/newt')
-rw-r--r-- | src/demos/newt/NEWTTest1.java | 1 | ||||
-rw-r--r-- | src/demos/newt/TaskManagerTest1.java | 1 | ||||
-rw-r--r-- | src/demos/newt/TaskManagerTest2.java | 5 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java index 59f6051..ab8d577 100644 --- a/src/demos/newt/NEWTTest1.java +++ b/src/demos/newt/NEWTTest1.java @@ -2,6 +2,7 @@ package demos.newt; import javax.media.nativewindow.*; import com.jogamp.newt.*; +import com.jogamp.newt.event.*; public class NEWTTest1 implements WindowListener, KeyListener, MouseListener { diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java index 5743537..62f0a89 100644 --- a/src/demos/newt/TaskManagerTest1.java +++ b/src/demos/newt/TaskManagerTest1.java @@ -2,6 +2,7 @@ package demos.newt; import javax.media.nativewindow.*; import com.jogamp.newt.*; +import com.jogamp.newt.event.*; import demos.newt.util.TaskManager; public class TaskManagerTest1 implements WindowListener, KeyListener, MouseListener diff --git a/src/demos/newt/TaskManagerTest2.java b/src/demos/newt/TaskManagerTest2.java index 62a9cee..0b61342 100644 --- a/src/demos/newt/TaskManagerTest2.java +++ b/src/demos/newt/TaskManagerTest2.java @@ -2,6 +2,7 @@ package demos.newt; import javax.media.nativewindow.*; import com.jogamp.newt.*; +import com.jogamp.newt.event.*; import demos.newt.util.TaskToolWM; public class TaskManagerTest2 implements WindowListener, KeyListener, MouseListener @@ -27,7 +28,7 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList System.err.println("windowDestroyNotify "+e); // stop running .. System.err.println("Window Event Listener DestroyNotify send stop request - START"); - TaskToolWM.unregisterWindowEvent(e.getSource()); + TaskToolWM.unregisterWindowEvent((Window)e.getSource()); System.err.println("Window Event Listener DestroyNotify send stop request - DONE"); } @@ -35,7 +36,7 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList System.err.println("keyPressed "+e); if(e.getKeyChar()=='q') { System.err.println("Key Event Listener 'q' - .."); - TaskToolWM.unregisterWindowEvent(e.getSource()); + TaskToolWM.unregisterWindowEvent((Window)e.getSource()); } } public void keyReleased(KeyEvent e) { |