ChartComposite mouseClicked

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rupi
Posts: 8
Joined: Thu May 07, 2009 1:38 pm

ChartComposite mouseClicked

Post by rupi » Tue Jun 07, 2016 11:55 am

The ChartComposite has a ChartMousListener with chartMouseClicked as one of the methods. But the chartMouseClicked method is called when the mouse butoon is pressed. In my opinion that is not correct as the mouse is actually clicked when the mouse button is raised. Does anybody know why this anomaly ?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: ChartComposite mouseClicked

Post by david.gilbert » Mon Jul 18, 2016 8:21 pm

Most likely it worked for the person that originally wrote the ChartComposite class, and no-one else has submitted a patch to change it. I don't use SWT myself, so I didn't run into the issue. For the next JFreeChart release, I have moved the SWT support classes into a separate project, it is on GitHub so if you want to propose a change feel free to submit a pull request:

https://github.com/jfree/jfreechart-swt
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked