GraphStream Users

Archives de la liste Aide

Chronologique Discussions 
  • From: "Steven E. Noel" <snoel AT>
  • To: "graphstream-users AT" <graphstream-users AT>
  • Subject:
  • Date: Wed, 16 Oct 2013 21:23:37 +0000
  • Accept-language: en-US

I've been able to successfully embed a GraphStream View into a JavaFX GUI.  Here is the key code:


Viewer viewer = new Viewer(network, ThreadingModel.GRAPH_IN_SWING_THREAD);

View view = viewer.addDefaultView(false);



SwingNode swingNode = new SwingNode();


StackPane pane = new StackPane();



This uses the newly available SwingNode ( to embed Swing content into a JavaFX application.


While this works for me, it introduces an extra GUI thread (Swing and JavaFX).  For example, dynamic changes to GraphStream graphs do not refresh in the GUI until the Swing thread completes and returns control to JavaFX.


I was wondering if there are plans for eventual support of support for JavaFX in GraphStream?



  • [no subject], Steven E. Noel, 16/10/2013
    • Re:, guilhelm savin, 16/10/2013

Archives gérées par MHonArc 2.6.16.

Top of page