Display mouse coordinates near mouse as hints on mouse move
JFreeChart has quite flexible support for crosshairs. To do what you described I would use an Overlay on the ChartPanel, and update the crosshairs from your ChartMouseListener. Here is a self-contained example (which I’ll add to the collection of demos that we ship with the JFreeChart Developer Guide): package org.jfree.chart.demo; import java.awt.BasicStroke; import java.awt.Color; import … Read more