GraphStream Users

Archives de la liste Aide

Re: component appear on the graph

Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT>
  • To: graphstream-users AT, guilhelm savin <guilhelm.savin AT>
  • Cc: István Fodor <szvepi AT>
  • Subject: Re: component appear on the graph
  • Date: Fri, 11 May 2012 13:56:04 +0200

This is a problem that already appeared when using the viewer in a Swing GUI, however with no fix yet, in part because it is difficult to reproduce.

You can may be (if this is not yet the case) try the nightly builds of GraphStream ( The way the view is drawn was changed, notably concerning the way the Graphics2D transformations are used. The bug can be tied to it. We will try to investigate this.


2012/5/11 guilhelm savin <guilhelm.savin AT>

Can you tell me the version of GraphStream and Java
you are using and your OS please ?


2012/5/11 István Fodor <szvepi AT>
Hi Guilhelm,

The button again appear in the graph.
Here is the example code: 

                JFrame frame = new JFrame();
JPanel panel = new JPanel(new GridLayout());
Graph graph = new SingleGraph("Tutorial 1");
JButton button = new JButton("Click");
graph.addNode("A" );
graph.addNode("B" );
graph.addNode("C" );
graph.addEdge("AB", "A", "B");
graph.addEdge("BC", "B", "C");
graph.addEdge("CA", "C", "A");
frame.setBounds(800, 0, 200, 200);


2012/5/11 guilhelm savin <guilhelm.savin AT>
Hi István,

Can you send to us some minimal code that reproduce the error ?
It should help us to give you an answer.


2012/5/10 István Fodor <szvepi AT>

I use GraphStream in my program, but I have a problem. When I move the mouse towards a JButton or other swing component, then this component appear on the graph. I attaeched picture with the error. 
Do you have any idea for this problem?

Thanks in advance.

Guilhelm Savin
PhD Student of Computer Science

Guilhelm Savin
PhD Student of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page