this.object3dFactory = object3DFactory;
if (Boolean.valueOf(System.getProperty("com.eteks.sweethome3d.j3d.useOffScreen3DView", "false"))) {
GraphicsConfigTemplate3D gc = new GraphicsConfigTemplate3D();
gc.setSceneAntialiasing(GraphicsConfigTemplate3D.PREFERRED);
this.component3D = new JCanvas3D(gc) {
public void paintComponent(Graphics g) {
super.paintComponent(g);
g.drawImage(navigationPanelImage, 0, 0, this);
}
};