Hello,

        I have been revamping the Pick behavior utils for my liking.  However, I
often need to call a method in the main after a pick occurs.

To do this:
-       I create a variable in the pick behavior with the type of my main
program's class
-       When creating the behaviors instance, I pass the main program's "this"
into the constructor of the behavior.


Questions:
-Does this eat up a lot of memory?

-Is there a more efficient way of calling methods from the main without
having to create an instance of the main's class.

-In C++, I'd use a pointer and not worry.  Is this what Java is really
doing?


Also, I see "callback" throughout the behaviors.  What are callbacks and how
are they used?

Thanks,
Sean

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to