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