[vtkusers] Mixing vtk with Swing

Bernard Giroux giroux at geo.polymtl.ca
Thu Jun 28 22:36:58 EDT 2007


Daniel.Zuidinga at rwth-aachen.de a écrit :
> Hello vtk-users,
> 
> i use vtk with the java-wrappings and have the problem with the mixing of heavyweight awt and lightweight swing components (especially menus). The vtkpanel is always drawn on the top.
> 
> I think this is a general problem of mixing awt/swing which has nothing to do with vtk?

Hi Daniel,

Have a look at

http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPopupMenu.html#setLightWeightPopupEnabled(boolean)

> 
> The current Java Version 1.6 solves the problem in case of "OpenGL-Swing integration" with JOGL's GLJPanel?:
> http://weblogs.java.net/blog/campbell/archive/2005/09/java2djogl_inte_1.html
> 
> Is there a solution for vtk? Can i implement a class such as "vtkGLJPanel" dervied from GLJPanel?
> 
> Or even exists any other (good) solution for my problem?
> 
> Thanks
> Daniel
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
Bernard Giroux, ing., Ph.D.
Chercheur

http://geo.polymtl.ca/~giroux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070628/ca14891b/attachment.bin>


More information about the vtkusers mailing list