2 messages in org.netbeans.graph.usersRe: Help regarding Satellite view int...
FromSent OnAttachments
karthikMay 16, 2007 3:30 am 
David KasparMay 17, 2007 1:06 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Help regarding Satellite view integration with Navigator panel.Actions...
From:David Kaspar (Davi@Sun.COM)
Date:May 17, 2007 1:06:33 am
List:org.netbeans.graph.users

Hi Karthik,

This happens when you are showing the satellite view before the main view is created/shown. This may happen when you are showning content in Navigator panel using satellite view while the editor is not opened to show the main JComponent view created by Scene.createView method. To show the main view is necessary for correct calculation of the scene otherwise the scene is not rendered correctly.

Unfortunately it looks like that this requirement is going completely against the nature of the Navigator view where you want to see the data even before its main view/editor is opened. The only solution is to show not satellite view but the main view in the Navigator window in case the editor is not opened. Unfortunately I cannot find any other solution for your use-case. If you do not like the proposed solution, please, enter an issue on "graph" module in Issuezilla. I am just scared that there would not be easy (if any) solution.

Thanks for your use-case, David

karthik wrote:

Hi all,

I am trying to integrate the satellite view with the navigator panel. I have an editor associated with my data object. When I open the editor the first time, I will parse the model and generate the graph. At this point, navigator view is also shown. I am getting the following exception.

java.lang.AssertionError: Scene.validate was not called after last change. Widget is not validated. See first Q/A at http://graph.netbeans.org/faq.html page. at org.netbeans.api.visual.widget.Widget.paint(Widget.java:1082) at org.netbeans.api.visual.widget.Widget.paintChildren(Widget.java:1158) at org.netbeans.api.visual.widget.Widget.paint(Widget.java:1106) at org.netbeans.api.visual.widget.Scene.paint(Scene.java:197) at org.netbeans.modules.visual.widget.SatelliteComponent.paint(SatelliteComponent.java:78)

at javax.swing.JComponent.paintChildren(JComponent.java:843) at javax.swing.JComponent.paint(JComponent.java:1015) at javax.swing.JComponent.paintChildren(JComponent.java:843) at javax.swing.JComponent.paint(JComponent.java:1015) at javax.swing.JComponent.paintChildren(JComponent.java:843) at javax.swing.JComponent.paint(JComponent.java:1015) at javax.swing.JComponent.paintChildren(JComponent.java:843) at javax.swing.JComponent.paint(JComponent.java:1015) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4972) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4925) at javax.swing.JComponent._paintImmediately(JComponent.java:4868) at javax.swing.JComponent.paintImmediately(JComponent.java:4675) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451) [catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

I am looking forward for some help.

Thanks, Karthik