<div dir="ltr">You should use the vtkPanel class instead.<div>And if you need the VTK interaction to manage 3D widget, then you should use the vtkCanvas.</div><div><br></div><div>You can look at that sample code: </div><div><br></div><div><a href="http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Wrapping/Java/vtk/sample/SimpleVTK.java;h=1d6efd2d80ecc30024d53eb07ef83514a3381784;hb=HEAD">http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Wrapping/Java/vtk/sample/SimpleVTK.java;h=1d6efd2d80ecc30024d53eb07ef83514a3381784;hb=HEAD</a></div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 17, 2015 at 2:32 AM, jason@optimalcomputing <span dir="ltr"><<a href="mailto:jason.cardinal@optimalcomputing.be" target="_blank">jason.cardinal@optimalcomputing.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I'm trying to integrate my vtk renderwindowpanel into a Java JPanel instead<br>
of a JFrame.<br>
<br>
I use the follwing tutorial as an example:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Java/SwingIntegration/JFrameRenderer" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Java/SwingIntegration/JFrameRenderer</a><br>
<br>
But when I modify that code to render the graphics within a JPanel which is<br>
integrated in the JFrame, this doesn't work anymore...<br>
<br>
<br>
My guess is that the vtk renderwindowpanel can't be integrated in anything<br>
else than a JFrame.<br>
Do someone know an alternative way on integrating that renderwindowpanel in<br>
a JPanel ?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Rendering-in-a-JPanel-tp5733524.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Rendering-in-a-JPanel-tp5733524.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>