I am making a chart program with jfree chart. If you go to this forum ( http://www.jfree.org...to+mouse#p82001 ) a user wants to create a dot that follows a mouse along a plotted line. I also want to do this, or something similar.
Another user posted some of his code which accomplishes this. However I can't figure out how to implement it. The post is really old and users arent responding to it anymore.
What the user said:
I was able to implement the feature "having small color ball along graph line while mouse move"
We are using binary search to located the nearest point.
Take a look if you are interested ;
The code in CrossHairUI.java is the relevant code I believe. Idk how to use it.