// add the geometry to the rendering engine…
// add the geometry to the rendering engine… renderingEngine.addGeometry( (GeometryArray) shape.getGeometry() ); // create a rendering surface and bind the rendering engine renderingSurface = new RenderingSurface( renderingEngine, geometryUpdater ); // start the rendering surface and add it to the content panel renderingSurface.start(); getContentPane().add( renderingSurface ); // disable automatic close support for Swing frame. setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE ); // add the window listener addWindowListener( new WindowAdapter() { // handle the system exit window message public void windowClosing( WindowEvent e ) { System.exit( 0 ); } } ); } public static void main( String[] args ) { MyJava3D myJava3D = new MyJava3D(); 28
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost JSP Web Hosting services