This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Graph App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Graph App" Watch "Graph App" New topic

Graph App

Joe Pawlak

Joined: Dec 02, 2003
Posts: 23
I have to write a Java app that takes data and turns it into a graph. I know how to get the data, but how would I draw the graph?
Would I use the Graphics class like in an applet?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

The best and easiest thing for you to do is probably use JFreeChart.
If, however, you chose to re-invent the wheel, your best bet is the Graphics2D API.
Good Luck!

GenRocket - Experts at Building Test Data
Joe Pawlak

Joined: Dec 02, 2003
Posts: 23
Thanks Gregg.
It looks like it should work.
I agree. Here's the link:
subject: Graph App
It's not a secret anymore!