[vtkusers] vtkPanel/canvas/renderwindow in a JFrame/JPanel MacOS

Scott Kelly stk at veritegroup.com
Fri Nov 2 10:37:28 EDT 2012


I'm having issues putting a vtkPanel, vtkCanvas or vtkRenderWindowPanel into a JFrame or JPanel on MacOS.   The vtk panel renders outside of the frame or panel but the interaction for the window stays within the original frame/panel.  I would like the vtk panel to stay within the Jframe and Jpanel.  On Win7 or Ubuntu the code works as expected, the vtk panel is contained within the Jframe or Jpanel.

As you hover over or interact with the original Jframe/Jpanel Java constantly outputs the following error:

JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM.

I'm using Java 1.7.0_09, VTK 5.10.1 and MacOS 10.8.2.

This problem can be reproduced using the TreeViews.java and Focus.java examples included with VTK.

Thanks in advance,
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121102/1d766fa0/attachment.htm>


More information about the vtkusers mailing list