Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2003

Tip: Looking for answers? Try searching our database.

Drawing a graph

Thread view: 
Karsten Wutzke - 29 Dec 2003 18:16 GMT
Hi all!

I want to draw a directed, possibly cyclic graph in some GUI. What would
probably be the best approach to that? What classes and what methods in
the JDK do I have to look for? I probably have to override some paint
method, but I'm not sure what to subclass etc. I have never done
something like this before.

Any suggestions?

Karsten
Brian Pipa - 30 Dec 2003 00:17 GMT
> Hi all!
>
[quoted text clipped - 3 lines]
> method, but I'm not sure what to subclass etc. I have never done
> something like this before.

Try a 3rd-party graphing library. I have used Touchgraph with much
success, but there are others.

Signature

---
MP3 Automagic CD Cover Creator
http://maccc.filenabber.com

hiwa - 30 Dec 2003 01:28 GMT
> Hi all!
>
[quoted text clipped - 7 lines]
>
> Karsten
Common way is subclassing JPanel of JLabel and override its
paintComponent() method. The argument Graphics object can be easily
casted to Graphics2D object so you can utilize some sophisticated
drawing methods.
Andrew Thompson - 30 Dec 2003 03:57 GMT
> Hi all!
>
> I want to draw a directed, possibly cyclic graph in some GUI. What would
> probably be the best approach to that?

Do you want to code it yourself, or do you
just want the functionality Karsten?

I believe there are quite a number of free,

[  http://www.google.com/search?as_q=java+graph+free
(many, many..) ]

..and possibly open source,
[ http://www.google.com/search?as_q=java+graph+free&as_epq=open+source
(44,000) ]
graphing packages already exist.

HTH

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.