diff options
author | Sven Gothel <[email protected]> | 2010-04-24 05:13:37 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-24 05:13:37 +0200 |
commit | ec32272ad1d5ce2509f0907792a411446acca30d (patch) | |
tree | 85d1762019f8e66684a8ed7090688e88f4e4fb38 /src/demos/newt | |
parent | 0cd9dad723fb1eae0b30bab9f36318bbd0f2ee3d (diff) |
Adaption to JOGL 1ad8c39df6b097c80ba7a85badf555e7f669cc3f
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) { |