[vtkusers] VTK + Java adding actors
Brian Henz
bjhenz at hotmail.com
Tue Feb 13 15:56:54 EST 2001
I have VTK and Java working on SGI and Linux but an having some trouble with
the following. I create a vtkPanel and then add actors to it which are
displayed and I can interact with them. But I can only interact with the
actors added in the same function where new vtkPanel was called. If I
create the Panel and pack it, and then add actors when a button is pushed
they are not viewable or interactive but they do exist because I can do
getRenderer().GetActors() and then list the actors.
When I try to interact with the actors I get
Exception occurred during event dispatching:
java.lang.NullPointerException
at vtk.vtkPanel.mouseDragged(vtkPanel.java:211, Compiled Code)
at java.awt.Component.processMouseMotionEvent(Component.java:3204,
Compiled Code)
at java.awt.Component.processEvent(Component.java:3003, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java:2394, Compiled
Code)
at java.awt.Component.dispatchEvent(Component.java:2307, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:287, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101,
Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92,
Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83, Compiled
Code)
Any ideas would be helpful.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
More information about the vtkusers
mailing list