Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Flashes of components appear when running layout (Read 2101 times)
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Flashes of components appear when running layout
Jul 30th, 2007 at 7:56am
Print Post  
This is an odd thing.
It seems that about 80% of the times I'm running the layout() method fro a FlowChart, for about 0.5 a second I see a static screen capture in the place of the FlowChart.
I'll try to explain: in a flash I see the Overview inside the FlowChart, or my Refresh button that exists outside of the chart suddenly appears inside it. It's as though as screen capture is pasted there or something like that.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flashes of components appear when running layo
Reply #1 - Jul 30th, 2007 at 10:35am
Print Post  
Do you run the layout after closing another window or dialog? JDiagram uses the Java double-buffering feature, and the buffer content might not be refreshed yet if running the layout immediately after closing a window. Try calling the FlowChart.repaint() method before Layout.arrange(). That should repaint the flowchart and also update the back-buffer.

Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Flashes of components appear when running layo
Reply #2 - Jul 30th, 2007 at 11:34am
Print Post  
This solved the problem!
I've added repaint before the layout, and all went well.
Thanks,
Yoav
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint