cannot resolve symbol XYTextAnnotation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Frank

cannot resolve symbol XYTextAnnotation

Post by Frank » Fri Jan 10, 2003 10:47 pm

the compiler doesnt understand;
plot.addAnnotation(new XYTextAnnotation("Hello world!", 10.0, 10.0));
^

OR

XYTextAnnotation test = new XYTextAnnotation("Hello world!", 10.0, 10.0);
^
plot.addAnnotation(test);

David Gilbert

Re: cannot resolve symbol XYTextAnnotation

Post by David Gilbert » Mon Jan 13, 2003 5:17 pm

Hi Frank,

You need to have:

import com.jrefinery.chart.annotations.XYTextAnnotation;

...at the top of your source file. And this is a relatively new feature, so I'm assuming you are using 0.9.4.

Regards,

Dave Gilbert

Locked