Working JFreeChart in NetBeans

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manolakis
Posts: 9
Joined: Thu Mar 22, 2007 2:56 am

Working JFreeChart in NetBeans

Post by manolakis » Sat Mar 24, 2007 12:12 am

Hi there!!!
It is my first time that i am dealing with NetBeans. I would like from someone if it was possible to illustrate me a way to work with that. I am trying to work out a Demo which can be found in http://www.java2s.com/Code/Java/Chart/J ... points.htm
I have jcommon and jfreechart package as well. Is any simple tutorial available?

thanks for your time

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Mar 26, 2007 12:10 pm

Download JFreeChart and unpack the archive in some convenient location for you.

Fire up NetBeans, and select "Library Manager" from the "Tools" menu. Click the "New Library..." button, and create a library called jfreechart-1.0.5 (fill in the fields to tell NetBeans where to find the jfreechart-1.0.5.jar file, and the corresponding source code). Repeat this process to create another library for jcommon-1.0.9.

Now you can create a new NetBeans project for your application. Once that is done, you'll see a "Libraries" item in the project tree - right click this and add the JFreeChart and JCommon libraries that you defined earlier. Now you can type in a program that uses JFreeChart, and NetBeans will know how to set up the classpath to find the required JFreeChart and JCommon classes.

I will write this up for an appendix in the next release of the JFreeChart Developer Guide.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked