source public class SimpleCone extends JFrame {public BranchGroup createSceneGraph () {BranchGroup objRoot = new BranchGroup (); TransformGroup objTrans = new TransformGroup (); objRoot.addChild (objTrans); Appearance app = new Appearance (); Material material = new Material ( Material.setemissiveColor (New Color3f (1.0F, 0.0F, 0.0F)); app.setMaterial (MATERIAL); CONE CONE = New Cone (.5f, 1.0f, 1, app); objtrans.addchild (cone) ; objRoot.compile (); return objRoot;} public SimpleCone () {setLayout (new BorderLayout ()); Canvas3D c = new Canvas3D (null); add ( "Center", c); BranchGroup scene = createSceneGraph (); SimpleUniverse u = new SimpleUniverse (c); u.getViewingPlatform () setNominalViewingTransform ();. u.addBranchGraph (scene);} public static void main (String [] args) {SimpleCone f = new SimpleCone (); f.setSize (200,300 ); f.setvisible (true);}}}}}}}}}}}}}}}}}}}}}}}}}}} EXCETION *********************************************************** ********************************* ********* *** ERROR: Canvas3D Constructed with a null graphicsconfiguration *** t His WILL CAUSE A NULLPOINTEREXCE CAUSE A SUBSEQUENT RELEASE ******************************************************** *****************************