I need to make a copy of an existing JFreechart and associate it several times with a mouse click Here is what I was trying:
public void chartMouseClicked(ChartMouseEvent event)
{
JFreeChart tempChart = existingChart;
ChartPanel panel = new ChartPanel(tempChart);
//View Frame
}
The same variable is used several times. The problem I encounter is, the previous chart also gets replaced when I make the second mouse click.
Is there a way to create a fresh copy somehow ?
clone()
yet? – Charles Goodwin