Hi,
I'm trying to add a trackaxis to the FinanceDemo java code. But the listener is ignored. No
event is received.
chartViewer1.addTrackCursorListener(new TrackCursorAdapter() {
@Override
public void mouseMovedPlotArea(MouseEvent e) {
System.out.println("This is an event");
}
});
In all the examples I've seen, the viewer was added to a JFrame, but in this case the
viewer is added to a JPanel. Can this be the reason why I'm not receiving the mouse
events?.
I'm stuck with this. Any help would be very appreciated.
Thank You very much. |