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 / November 2006

Tip: Looking for answers? Try searching our database.

Tracing points on mouse drag event

Thread view: 
csarami@gmail.com - 15 Nov 2006 17:12 GMT
Dear All,

Assume that you have Image (m by n) uploaded. You left-click on mouse
and drag a curve while ur pressing on left button.

How can i retrieve the list of points ( i,j) where the mouse has gone
over.

thanks much in advance.

regards,

chekad
Michael Rauscher - 15 Nov 2006 18:24 GMT
csarami@gmail.com schrieb:
> Dear All,
>
[quoted text clipped - 3 lines]
> How can i retrieve the list of points ( i,j) where the mouse has gone
> over.

Combine a MouseListener with a MouseMotionListener and store the
locations you get by MouseEvents in mouseDragged and mouseClicked.

Bye
Michael
Fred Kleinschmidt - 15 Nov 2006 18:33 GMT
> Dear All,
>
[quoted text clipped - 9 lines]
>
> chekad

Register a MouseListener and a MouseMotionListener.
Note, however, that it is possible that you will not capture
every pixel crossed by the user - it may depend on how fast she
moves the mouse.
Signature

Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project



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



©2008 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.