Skip to content
Advertisement

Tag: jgraphx

How can I draw with Graphics2D on the JGraphX graph?

How can I can draw with Graphics2D on the JGraphX graph? I tried something like this: Answer First, graph.refresh(); will erase the dranw line since it will re-render all the graph on the graphics of the component. Secondly, don’t forget to call the draw function in the ADT Thread Other than that, it should work normally as I have succesfully

Advertisement