[vtkusers] Java vtkPanel

Jeff Lee jeff at cdnorthamerica.com
Tue May 21 06:20:13 EDT 2002


Hi Peter,
I responded to someone else a while back about this - try searching the 
archives for swingutilities - if it doesn't help, post your code and 
I'll look at it.
-Jeff

Peter Parente wrote:

>Hi,
>
>I'm having problems working with the vtkPanel class that is included with
>the precompiled Java package for Windows. User interaction within the window
>works fine, but when I try to programmatically move the active camera the
>visual is not updated. I am calling the Render() method for the panel and I
>can see that the render events are occuring using an observer, but the
>actual image in the Java window is not updated.
>
>I know that I can get around this problem by simply using a vtkRenderWindow
>within Java, but I'm really using Java for it's GUI building capabilities. I
>would really like to use vtkPanel or a class like it as my render window
>within a JFrame that also houses some GUI elements.
>
>If anyone can help, please let me know. I can also provide source code if it
>is requested, although what I've done is nearly identical to the SimpleVTK
>example provided with the vtkPanel class. All I've added to this example is
>a loop at the end of the program that rotates the active camera by 180
>degrees and calls the vtkPanel render function.
>
>Thanks,
>Peter Parente
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>






More information about the vtkusers mailing list