Re: [JAVA3D] Java3D and Mouse Listener question

2004-04-28 Thread Andy
Thanks to all your reply, I will change my design to using thread then, cuz it sounds much easier for me to program in threads this way.  :) Andy Florin Herinean wrote: Being afraid of threads is pretty stupid. Threads are what makes things to happen smooth and to promptly react regardless

Re: [JAVA3D] Java3D and Mouse Listener question

2004-04-28 Thread Florin Herinean
D API [mailto:[EMAIL PROTECTED] Behalf Of Andy Sent: Mittwoch, 28. April 2004 15:37 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Java3D and Mouse Listener question Thank you for replying. I need to check the mouse position constantly even it's not moving, for example, if I move my mouse t

Re: [JAVA3D] Java3D and Mouse Listener question

2004-04-28 Thread Nicholas Pappas
> Someone > suggests me to use a thread to check constantly inside the method Me. ;) > Loop > Check mouse position > IF mouse position is in the area, do something > ELSE do nothing > End Loop Sure, you can do exactly that in Java; just the way you mentioned it.

Re: [JAVA3D] Java3D and Mouse Listener question

2004-04-28 Thread Andy
list for Java 3D API [mailto:[EMAIL PROTECTED] Behalf Of Andy Sent: Dienstag, 27. April 2004 20:12 To: [EMAIL PROTECTED] Subject: [JAVA3D] Java3D and Mouse Listener question Hi all, I am currently have a program that has a cube, and a camera. I use mouse event listener to check if the mouse moves

Re: [JAVA3D] Java3D and Mouse Listener question

2004-04-28 Thread Florin Herinean
Behalf Of Andy Sent: Dienstag, 27. April 2004 20:12 To: [EMAIL PROTECTED] Subject: [JAVA3D] Java3D and Mouse Listener question Hi all, I am currently have a program that has a cube, and a camera. I use mouse event listener to check if the mouse moves to the edge of the program, if yes, then it m

Re: [JAVA3D] Java3D and Mouse Listener question

2004-04-27 Thread Nicholas Pappas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ~ There is no direct function, that I know of, that will do this automatically. ~ You could write your own class that does this though. The program will want to implement the mouse listener and extend the thread class. Inside a while(true)

[JAVA3D] Java3D and Mouse Listener question

2004-04-27 Thread Andy
Hi all, I am currently have a program that has a cube, and a camera. I use mouse event listener to check if the mouse moves to the edge of the program, if yes, then it moves the camera. But if I move my mouse to the edge and stop there, it just checks whenever the mouse moves or not, otherwise, i