public OffScreenTest () { }
public OffScreenTest() {  initComponents();   scene = createSceneGraph();   OnScreenCanvas3D onScreenCanvas = createOnScreenCanvasAndUniverse(); drawingPanel.add(onScreenCanvas, java.awt.BorderLayout.CENTER);   OffScreenCanvas3D offScreenCanvas = createOffScreenCanvas();   Screen3D sOn = onScreenCanvas.getScreen3D(); Screen3D sOff = offScreenCanvas.getScreen3D(); sOff.setSize(sOn.getSize()); sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()); sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight());   View view = univ.getViewer().getView(); view.addCanvas3D(offScreenCanvas);    onScreenCanvas.setOffScreenCanvas(offScreenCanvas);  univ.addBranchGraph(scene);  view.stopView();   onScreenCanvas.setImageReady(); view.startView(); }
  public OffScreenTest ()  {  }