开发者

cannot find symbol : LegendItem() in org.jfree.chart.LegendItem

i using the following line in my java program

LegendItem item1 = new LegendItem("US", "US", "US", "US",
                new Rectangle(10, 10), new GradientPai开发者_如何学Cnt(0.0f, 0.0f,
                new Color(16, 89, 172), 0.0f, 0.0f, new Color(201, 201, 244)));

and using "jfreechart-1.0.13.jar" file and getting this error

cannot find symbol
  symbol:   constructor LegendItem(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.awt.Rectangle,java.awt.GradientPaint)
  location: class org.jfree.chart.LegendItem

but in the jar file in class org.jfree.chart.LegendItem.class i have seen the constructor with the parameters i am using.

i am using net beans6.9.1 ide . i am not able to find the reason for this.

if any one can help me please

Thanks

Yugal


Compiles & Executes fine , with jfreechart-1.0.3.jar in classpath

import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Rectangle;
import org.jfree.chart.LegendItem;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        LegendItem item1 = new LegendItem("US", "US", "US", "US",
                new Rectangle(10, 10), new GradientPaint(0.0f, 0.0f,
                new Color(16, 89, 172), 0.0f, 0.0f, new Color(201, 201, 244)));

        System.out.println(item1.getSeriesIndex());
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜