if ( previewPainter == null ) { previewPainter = new ChartPreviewPainter( getWizardContext( ).getProcessor( ) ); previewCanvas.addPaintListener( previewPainter.getPaintListener( ) ); previewPainter.setPreview( previewCanvas ); }  previewPainter.renderModel( getChartModel( ) );
previewPainter = new ChartPreviewPainter( getWizardContext( ).getProcessor( ), container ); previewCanvas.addPaintListener( previewPainter ); previewCanvas.addControlListener( previewPainter ); previewPainter.setPreview( previewCanvas );
	private void createPreviewPainter( )	{		if ( previewPainter == null )		{			previewPainter = new ChartPreviewPainter( getWizardContext( ).getProcessor( ) );			previewCanvas.addPaintListener( previewPainter.getPaintListener( ) );			previewPainter.setPreview( previewCanvas );		}		previewPainter.renderModel( getChartModel( ) );	}