Turn off mouse click crosshair

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
javageek
Posts: 11
Joined: Tue Apr 14, 2009 2:26 pm

Turn off mouse click crosshair

Post by javageek » Mon May 25, 2009 4:26 am

In my application I have a domain crosshair that is set and moved as the mouse is moved. It works great. I also have it so I can "freeze" the crosshair by clicking the mouse. Then when I click the mouse again the crosshair will start moving again with the mouse movement. The problem is when I do the mouse click the crosshair sometimes will change even past where it was just located. I have searched and searched but can't find a way to turn off the action of a mouse click causing the crosshair to move.

Am I going to have to go in and start changing the draw methods to provide an indicator to ignore the mouse click for crosshairs? I would appreciate a hint for a better approach.

Thanks

comir
Posts: 8
Joined: Sat Jun 16, 2012 3:55 am
antibot: No, of course not.
Location: Indonesia
Contact:

Re: Turn off mouse click crosshair

Post by comir » Tue Jul 10, 2012 2:49 am

can you share your code here . . .

carloshoward45
Posts: 1
Joined: Fri Jul 13, 2012 11:41 am
antibot: No, of course not.

Re: Turn off mouse click crosshair

Post by carloshoward45 » Fri Jul 13, 2012 11:45 am

can share the code javageek ?

Locked