summaryrefslogtreecommitdiffstats
path: root/src/demos/newt
diff options
context:
space:
mode:
authorDmitri Trembovetski <[email protected]>2009-05-26 22:59:32 +0000
committerDmitri Trembovetski <[email protected]>2009-05-26 22:59:32 +0000
commit92bf955f17d1c070322ccf94d2de76d74f3eaa40 (patch)
tree881ef04067e128fefa271134ddb096ccc5922a16 /src/demos/newt
parenta2891274a4160062cea7a649a321f798216a1587 (diff)
Newt: updated newt demos to implement new methods in Mouse and WindowListeners
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@335 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/newt')
-rw-r--r--src/demos/newt/NEWTTest1.java9
-rw-r--r--src/demos/newt/TaskManagerTest1.java9
-rw-r--r--src/demos/newt/TaskManagerTest2.java9
3 files changed, 27 insertions, 0 deletions
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java
index 15e2ff8..51a31c7 100644
--- a/src/demos/newt/NEWTTest1.java
+++ b/src/demos/newt/NEWTTest1.java
@@ -21,6 +21,12 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
public void windowMoved(WindowEvent e) {
System.err.println("windowMoved "+e);
}
+ public void windowGainedFocus(WindowEvent e) {
+ System.err.println("windowGainedFocus "+e);
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.err.println("windowLostFocus "+e);
+ }
public void windowDestroyNotify(WindowEvent e) {
System.err.println("windowDestroyNotify "+e);
// stop running ..
@@ -58,6 +64,9 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
public void mouseDragged(MouseEvent e) {
System.err.println("mouseDragged "+e);
}
+ public void mouseWheelMoved(MouseEvent e) {
+ System.err.println("mouseWheelMoved "+e);
+ }
void render(long context)
{
diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java
index f704a86..d2b7e98 100644
--- a/src/demos/newt/TaskManagerTest1.java
+++ b/src/demos/newt/TaskManagerTest1.java
@@ -33,6 +33,12 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
public void windowMoved(WindowEvent e) {
System.err.println("windowMoved "+e);
}
+ public void windowGainedFocus(WindowEvent e) {
+ System.err.println("windowGainedFocus "+e);
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.err.println("windowLostFocus "+e);
+ }
public void windowDestroyNotify(WindowEvent e) {
System.err.println("windowDestroyNotify "+e);
System.err.println("Window Event Listener DestroyNotify send stop request - START");
@@ -70,6 +76,9 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
public void mouseDragged(MouseEvent e) {
System.err.println("mouseDragged "+e);
}
+ public void mouseWheelMoved(MouseEvent e) {
+ System.err.println("mouseWheelMoved "+e);
+ }
void render(long context)
{
diff --git a/src/demos/newt/TaskManagerTest2.java b/src/demos/newt/TaskManagerTest2.java
index 2332451..ab6fd47 100644
--- a/src/demos/newt/TaskManagerTest2.java
+++ b/src/demos/newt/TaskManagerTest2.java
@@ -17,6 +17,12 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
public void windowMoved(WindowEvent e) {
System.err.println("windowMoved "+e);
}
+ public void windowGainedFocus(WindowEvent e) {
+ System.err.println("windowGainedFocus "+e);
+ }
+ public void windowLostFocus(WindowEvent e) {
+ System.err.println("windowLostFocus "+e);
+ }
public void windowDestroyNotify(WindowEvent e) {
System.err.println("windowDestroyNotify "+e);
// stop running ..
@@ -59,6 +65,9 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
public void mouseDragged(MouseEvent e) {
System.err.println("mouseDragged "+e);
}
+ public void mouseWheelMoved(MouseEvent e) {
+ System.err.println("mouseWheelMoved "+e);
+ }
private class RenderThread implements Runnable {
Window window;