File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes network graph with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "network graph with Java" Watch "network graph with Java" New topic

network graph with Java

infovis sh

Joined: Jul 06, 2005
Posts: 4
hi everybody,

somebody suggest how to draw network (line and node)graph with java and database ie. node and link values from the database.

plz help.

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Moving to the Java in General (intermediate) forum.

Rahul Sapkal

Joined: Jul 06, 2005
Posts: 4
You can use java.awt.Graphics or java.awt.Graphics2D classes to draw on Java Components like, Panel or Canvas. According to your requirement you can draw Lines and Shapes to make your network diagram.

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Take a peek at Graphviz and Dot to see how complex it can be to produce a neat looking graph. I think there are some comparable commercial products for Java, don't know about open source. You could even shell out to Graphviz if you liked it.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
infovis sh

Joined: Jul 06, 2005
Posts: 4
thank the suggestions... but can u please provide me some small examles....
Don't get me started about those stupid light bulbs.
subject: network graph with Java
It's not a secret anymore!