GraphStream Users

Archives de la liste Aide


Re: component appear on the graph


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: István Fodor <szvepi AT gmail.com>
  • Cc: graphstream-users AT litislab.fr
  • Subject: Re: component appear on the graph
  • Date: Fri, 11 May 2012 10:51:52 +0200

Hi,

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

Regards.

2012/5/11 István Fodor <szvepi AT gmail.com>
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");
panel.add(button);
frame.add(panel);
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.setVisible(true);
frame.setBounds(800, 0, 200, 200);
graph.display();

Thanks.


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

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

Regards.

2012/5/10 István Fodor <szvepi AT gmail.com>
Hi,

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