protected void init(){
  GraphicsConfigTemplate3D template=new GraphicsConfigTemplate3D();
  GraphicsEnvironment env=GraphicsEnvironment.getLocalGraphicsEnvironment();
  GraphicsDevice device=env.getDefaultScreenDevice();
  GraphicsConfiguration config=device.getBestConfiguration(template);
  canvas=new Canvas3D(config);
  canvas.setSize(new Dimension(DEFAULT_DIMENSION,DEFAULT_DIMENSION));
  objRootBG=new BranchGroup();
  objRootBG.setCapability(Group.ALLOW_CHILDREN_EXTEND);
  constructWorld(objRootBG);
}

protected void init ( ) { GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D ( ) ; GraphicsEnvironment env = GraphicsEnvironment . getLocalGraphicsEnvironment ( ) ; GraphicsDevice device = env . getDefaultScreenDevice ( ) ; GraphicsConfiguration config = device . getBestConfiguration ( template ) ; canvas = new Canvas3D ( config ) ; canvas . setSize ( new Dimension ( DEFAULT_DIMENSION , DEFAULT_DIMENSION ) ) ; objRootBG = new BranchGroup ( ) ; objRootBG . setCapability ( Group . ALLOW_CHILDREN_EXTEND ) ; constructWorld ( objRootBG ) ; }
set up the canvas and the universe .
