
I used the code provided here for a pie chart using swing in Java, and when I saved it to my desktop, it ran fine, and worked as explained, but then I tried to add the same code to NetBeans 7.2.1, and got errors saying that the lines,
g2d.setColor(colors.get(i));
Double val = values.get(i);
for (int i = 0; i < gradingValues.size(); i++) { were all using incompatible types, continuing to say, *required: double found: object* Is there some reason for this??
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
