Kyle,

I *think* I understood you correctly. As far as I know, you should not have
a problem doing what you are trying to achieve. In my application I allow
the user to drag and rotate Shape3D objects and then I update their
positions and rotations in a TextField on a Swing JPanel. Is this similar to
what you are trying to do?

Maybe you have not assigned the reference to the panel correctly inside your
behavior? A null pointer exception sounds like you may have forgotten to
initialize something? The panel that is to receive the status text would
have to be passed into the behavior at some point... E.g. in the
constructor.

Best of luck,

Daniel Selman

Email: [EMAIL PROTECTED]
Web: http://www.tornadolabs.com


-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Benedict, Jon K.
Sent: 09 September 1999 15:55
To: [EMAIL PROTECTED]
Subject: Picking Shapes and displaying to another Panel


I have been working on this problem
for a few days now, and can not seem to beat it.
I am creating a large universe with high resolution
lightwave3d shapes moving around in it (imagine
a large airport).  I have a picking behavior set that will
display information about the lightwave3d shapes to
the System Prompt upon clicking the shapes, however,
I want to display the information to another panel.
The problem is that the same class that builds all
classes related to the Canvas3D also builds the panel.
I always get a nullPointerException no matter how I try
to modify the panel from the Picking Behavior Class.
I am pretty certain that the editing of the panel's graphics
must be done from inside my Picking Behavior class.
I am concerned that a live java3d canvas can not interact
with a swing or awt panel... I hope this is not true.

Does anyone know a solution to picking a 3d object,
and displaying information about it to another frame/panel?
Sorry I do not have code samples included.

Thank you very much.
Kyle Benedict
[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to