0

does anyone knows whether I can use JGraph in an eclipse plugin to draw some graphs? I read about that JGraph is for Swing and Eclipse plugins are in SWT, is there a problem?

Cheers, Simon

Yannic
  • 15
  • 3
  • Does JGraph offer any feature that the graph libraries for SWT don't? – Baz May 08 '13 at 15:35
  • Have you checked Eclipse GEF? – Eugene May 09 '13 at 00:55
  • Or just [Zest](http://www.eclipse.org/gef/zest/index.php)? – Baz May 09 '13 at 06:42
  • Currently I use Zest, but I wanted to find out, whether I can use another graph api like JGraph. – Yannic May 09 '13 at 12:51
  • @jsimon Why? Does JGraph have any features that Zest of GEF don't? – Baz May 09 '13 at 13:21
  • @Baz this is not the point. I need to find the possibilities to draw a graph in an eclipse plugin. – Yannic May 10 '13 at 05:59
  • @jsimon And you can do that with Zest of GEF. If you need JGraph, look at my answer below. If that's not a option, then you can't use JGraph, because it does not natively support SWT. – Baz May 10 '13 at 06:26

1 Answers1

0

It is possible to use Swing components in an SWT application. If JGraph works perfectly remains to be tested though, I couldn't find any positive results on google.

Here is an article from Eclipse on how to use Swing components.

Good luck.

Baz
  • 36,440
  • 11
  • 68
  • 94