GeeCON Prague 2014*
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


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Graph App" Watch "Graph App" New topic
Author

Graph App

Joe Pawlak
Greenhorn

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?
Thanks.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
Greenhorn

Joined: Dec 02, 2003
Posts: 23
Thanks Gregg.
It looks like it should work.
 
GeeCON Prague 2014
 
subject: Graph App