GraphStream Users

Archives de la liste Aide

Add View to a JPanel

Chronologique Discussions 
  • From: Filippo Bistaffa <filippo.bistaffa AT>
  • To: graphstream-users AT
  • Subject: Add View to a JPanel
  • Date: Sat, 24 Dec 2011 11:57:19 +0100

Hi, I'm trying to integrate the View of a graph in my GUI, so far I'm doing this

viewer = new Viewer(sfn.g, ThreadingModel.GRAPH_IN_SWING_THREAD);
view = viewer.addDefaultView(false);
mainFrame = new JFrame("");
JPanel p = new JPanel();

(I need to use the extra panel p, for my needs)
With this code nothing is displayed in the JFrame, any idea?

Archives gérées par MHonArc 2.6.16.

Top of page