[vtkusers] Re: Mixing vtk with Swing

David Marshburn marshbur at cs.unc.edu
Thu Jun 28 12:20:54 EDT 2007


hi daniel,

you're right that this is a general problem of mixing heavy- and 
lightweight components.

one solution is to set swing componets to be heavyweight components.  for 
popup menus, for instance, you'd do:

  JPopupMenu.setDefaultLightWeightPopupEnabled(false);

then the drawing order will be correct (and, really, this is only a 
problem with things, like menus, that are supposed to pop up over other 
things).  

-david




More information about the vtkusers mailing list