GraphStream Users

Archives de la liste Aide

Re: Add View to a JPanel

Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT>
  • To: Filippo Bistaffa <filippo.bistaffa AT>, graphstream-users AT
  • Subject: Re: Add View to a JPanel
  • Date: Sat, 24 Dec 2011 13:01:58 +0100

Do you use gs-ui ? Did you changed both ? There is indeed a method whose signature changed, but it should be up to date in both gs-core and gs-ui in nightly builds. If not, I will try to generate builds for you.


2011/12/24 Filippo Bistaffa <filippo.bistaffa AT>
With the new version I'm getting tons of errors like this

Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: org.graphstream.ui.j2dviewer.J2DGraphRenderer.render(Ljava/awt/Graphics2D;II)V
at org.graphstream.ui.swingViewer.DefaultView.render(
at org.graphstream.ui.swingViewer.DefaultView.paint(
at javax.swing.JComponent.paintToOffscreen(
at javax.swing.BufferStrategyPaintManager.paint(
at javax.swing.RepaintManager.paint(
at javax.swing.JComponent._paintImmediately(
at javax.swing.JComponent.paintImmediately(
at javax.swing.RepaintManager.paintDirtyRegions(
at javax.swing.RepaintManager.paintDirtyRegions(
at javax.swing.RepaintManager.prePaintDirtyRegions(
at javax.swing.RepaintManager.access$700(
at javax.swing.RepaintManager$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$000(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

On Sat, Dec 24, 2011 at 12:27 PM, Antoine Dutot <antoine.dutot AT> wrote:
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 : ?



2011/12/24 Filippo Bistaffa <filippo.bistaffa AT>
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