Is JFreeChart using AWT/Swing internally ?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
inder.chaurasiya
Posts: 3
Joined: Tue Jan 03, 2012 12:39 pm
antibot: No, of course not.

Is JFreeChart using AWT/Swing internally ?

Post by inder.chaurasiya » Mon Feb 13, 2012 9:37 am

Hi Guys,

Request you to reply asap about JFree Chart is purely written on java or internally it is using AWT/Swing.

Because JFreeChart is saying that it is written 100% on java but design looks like using AWT/Swing.

Thanks,
Inder

mpassell
Posts: 5
Joined: Wed Oct 07, 2009 7:15 pm
antibot: No, of course not.
Location: Waltham, MA USA
Contact:

Re: Is JFreeChart using AWT/Swing internally ?

Post by mpassell » Sat Feb 18, 2012 5:15 pm

There is no point in saying "Request you to reply asap". See the post on How to Ask a Question about JFreeChart - http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=24715.

I'm not sure if JFreeChart uses Swing, but it definitely takes advantage of AWT. However, I'm not sure what gave you the impression that would make it not pure Java, since AWT has been part of the core Java libraries since Java 1.0 and Swing since 1.2.

--Matt

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

Re: Is JFreeChart using AWT/Swing internally ?

Post by david.gilbert » Mon Feb 20, 2012 6:38 am

JFreeChart uses the Java2D API extensively, and Java2D can be considered to be part of AWT.

There's the ChartPanel class to provide good integration with Swing, but otherwise JFreeChart is independent of Swing.

As the previous poster said, using AWT, Java2D or Swing does not stop code being 100% Java. These APIs are part of J2SE.
David Gilbert
JFreeChart Project Leader

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

Locked