I am writing an application that uses Jfreechart to plot a simple bar chart, this chart needs to respond to mouse clicks from the user. I would like to change the color of the bar that is clicked on by the user. I know that the event will be a ChartMouseEvent that will be handled by the ChartMouseListener but I am a little confused about how to change the color of the ChartEntity once I have received it from the event.
Any help would be much appreciated.