JCanvas3D

I’m still a noob in Java3D.
Can somebody show me how I can use a JCanvas3D in stead of a Canvas3D?

I did


public test(){
		JFrame frame = new JFrame("hello");
		frame.setSize(400, 400);
				
		GraphicsConfigTemplate3D gCT = new GraphicsConfigTemplate3D();        
                JCanvas3D jCanvas3D = new JCanvas3D(gCT);
               
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.add(jCanvas3D);
		
		frame.setVisible(true);
	}

and I get


CANVAS CRASHED!!!

without explanation.

Hi,

the source code of the sample program JCanvas3D Navigation is availabel here: http://www.interactivemesh.org/testspace/orbitbehavior.html.

August