[vtkusers] R: Java vtkCanvas/vtkPanel blank on start up, have to manually resize to show content

Jarek Sacha jarek at ieee.org
Wed Jan 26 13:11:23 EST 2011


Thanks Arturo.
Option -Dsun.java2d.noddraw=true works!

On 1/26/2011 12:12 PM, arturo_caissut at tiscali.it wrote:
> Hi Jarek,
>
> I've resolved a similar issue today by tuning a little bit my virtual machuine. In particular, please try to set -Dsun.java2d.noddraw=true as a jvm option.
>
> Arturo
>
> -----Original Message-----
>
> I am trying to figure out how to display content of Java's vtkPanel at
> startup (or vtkRenderWindowPanel). Consider JFrameRenderer example at
> http://www.vtk.org/Wiki/VTK/Examples/Java/SwingIntegration/JFrameRenderer
>
> When I started the frame it is correctly sized, for a moment the content
> flickers then goes blank. It can be displayed by resizing the window or
> simply pressing 'R'. Similar thing may happen when the frame is
> minimized, after it is restored, content may be blank (it intermittent,
> though frequent); pressing 'R' restores the display.
>
> Any ideas how to get the display right when frame opens?




More information about the vtkusers mailing list