reading Mouse MOVE events without moving pointer  
Author Message
mikeoxbig_1974





PostPosted: 2004-1-16 22:31:00 Top

java-programmer, reading Mouse MOVE events without moving pointer Hi,

Does anyone know of way of setting up a java app so that a instead of
mouse movements being used to update the pointer, the mouse move could
be used to update, say, the viewport of a document?

An example in more detail;
what I want to do is use the mouse MOVE event that is caused by the
movement of the mouse, but not update the pointer position (I would
like the pointer to remain still or be invisble) but to allow me to
update the viewport on a document. ie, user presses a 'trigger' key
to put the code into a receptive mode, then all subsequent mouse
movements (triggering mouse MOVE events) can be captured and used to
update the viewport location- ie, mouse moves left, pointer remains
still, viewport moves left.

I don't know if this is possible due to the OS independance that java
has. Maybe a solution involves the glass-pane in some (I am not
familiar with the glass- yet. It is one of my avenues to search...)

Thanks for any ideas... mucho thanks for any code examples....

M.
 
VK





PostPosted: 2004-1-17 4:00:00 Top

java-programmer >> reading Mouse MOVE events without moving pointer I believe the "swinged" Java allows you to use a custom images for
cursor pointers. Then you could assign a blank (transparent) image for
cursor to make it invisible.
Did not try myself yet ...


 
HGA03630





PostPosted: 2004-1-17 18:08:00 Top

java-programmer >> reading Mouse MOVE events without moving pointer email***@***.com wrote in message news:<email***@***.com>...

If you need to fire/listen an event E in order to accomplish a task T,
I'm afraid E is not a mouse event in your requirement described here.
You can devise any comment.
 
 
ak





PostPosted: 2004-1-18 1:03:00 Top

java-programmer >> reading Mouse MOVE events without moving pointer
"VK" <email***@***.com> schrieb im Newsbeitrag
news:4008424d$0$17652$email***@***.com...
> I believe the "swinged" Java allows you to use a custom images for
> cursor pointers. Then you could assign a blank (transparent) image for
> cursor to make it invisible.
that's right, but not only "swinged" java, awt can it too.

> Does anyone know of way of setting up a java app so that a instead of
> mouse movements being used to update the pointer, the mouse move could
> be used to update, say, the viewport of a document?
use mouseDragged event, not mouseMoved

____________

http://reader.imagero.com the best java image reader.