Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

reading Mouse MOVE events without moving pointer

Thread view: 
mikeoxbig_1974@hotmail.com - 16 Jan 2004 14:30 GMT
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 - 16 Jan 2004 19:59 GMT
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 ...
ak - 17 Jan 2004 17:03 GMT
> 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.
hiwa - 17 Jan 2004 10:08 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.