[vtkusers] Rendering inside Java JPanel?

Christopher Navarro cnavarro at ncsa.uiuc.edu
Fri Jun 21 11:22:47 EDT 2002


Hi,

I'm fairly new to Java and was wondering if it is possible to render an 
image within a JPanel object instead of the default render window that is 
created? (for reference I am using vtk 4.0)

ie:

vtkConeSource cone = new vtkConeSource()
.
mapper
.
actor
.
renderer
etc

JPanel panel;   // render the image inside this panel

I notice there is a SetWindowId....can I obtain a Java windows ID and set 
the renderwindow's ID to that?  

-chris




More information about the vtkusers mailing list