mouse behavior

<html><div style='background-color:'><DIV>
<P>Hello, All</P>
<P>I have a MouseRotate class which extends Java3D's MouseBehavior class. This 
class <BR>allows users to rotate my 3D image using left mouse within the 
specified x and y ranges so that the users can not see the bottom of my image. 
The Java3D's MouseRotate class allows users to view the image from any angles 
using left mouse, the same for the default VisAD<BR>mouse behavior. Now I want 
to apply my own MouseRotate class to my DisplayImplJ3D, i.e., I do not want to 
use the default mouse behavior of VisAD. I searched VisAD<BR>email archive and 
found Bill's message on 26 Jul 1999. So I followed what Bill said and added the 
following code to my program:</P>
<P>DisplayRendererJ3D display_renderer =<BR>&nbsp;(DisplayRendererJ3D) 
display.getDisplayRenderer();<BR>TransformGroup trans = 
display_renderer.getTrans();<BR>if(trans == 
null)<BR>&nbsp;System.out.println("trans is empty");<BR>MouseRotate my_mouse = 
new MouseRotate();<BR>BoundingSphere bounds =<BR>&nbsp;new BoundingSphere(new 
<P>BranchGroup group = new 
BranchGroup();<BR>Group.addChild(my_mouse);<BR>trans.addChild(group); </P>
<P>After I run my program, I still can rotate and zoom the image as before, 
i.e., these codes<BR>do not do anything. </P>
<P>Any help will be highly appreciated.</P>
<P>Gaoming Fu</P></DIV>
<DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and 
print your photos: <a href=''>Click