[vtkusers] Re : VTKPanel +Swing - repainting issue
jeromerobert at gmx.com
Tue Jun 22 03:33:19 EDT 2010
On Windows, running your Java application with -Dsun.java2d.ddoffscreen=false -Dsun.java2d.gdiblit=false may help removing the flickering effect.
I don't think it's a lightweight/heavyweight problem as one panel is not hidding an other. It could be related to http://www.vtk.org/Bug/view.php?id=7107
Which layout do you use in your main JPanel ?
> ----- Message d'origine -----
> De : Markus Ott
> Envoyés : 21.06.10 18:28
> À : vtkusers at vtk.org
> Objet : [vtkusers] VTKPanel +Swing - repainting issue
> Hello vtkusers!
> I'm using VTK within Java. I have a simple layout with a JPanel
> containing another information panel on the left side and a vtkPanel on
> the right side.
> When i'm trying to override paintComponent()-methods of my infoPanel and
> call the repaint() method the whole program's visual representation
> messes up. I.e. i have only black and grey representations of my gui
> elements and vtkPanel isn't usable any more (if i click it i get a
> I think it has something to do with mixing lightweight and heavyweight
> components within java.
> Also the vtkPanel is flickering while resizing the window or if other
> programs are on top of it. I think this may be based upon the same problem.
> Has anybody an idea what to do?
More information about the vtkusers