GraphStream Users

Archives de la liste Aide


Re: Add View to a JPanel


Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT gmail.com>
  • To: graphstream-users AT litislab.fr, Filippo Bistaffa <filippo.bistaffa AT gmail.com>
  • Subject: Re: Add View to a JPanel
  • Date: Sat, 24 Dec 2011 12:27:25 +0100

Hi Filippo,

There is a known bug in the released version, It is only corrected on the github repository.

Could you try the latest version provided here : http://graphstream-project.org/pub/1.x/nightly-build/ ?

Regards,

Antoine

2011/12/24 Filippo Bistaffa <filippo.bistaffa AT gmail.com>
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();
p.add(view);
mainFrame.getContentPane().add(p);

(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