reportConfiguration.setConfigProperty( JFreeReportPreviewSwingComponent.PROGRESS_DIALOG_ENABLED_KEY, String
.valueOf( progressDialog ) );
reportConfiguration.setConfigProperty( JFreeReportPreviewSwingComponent.PROGRESS_BAR_ENABLED_KEY, String
.valueOf( progressBar ) );
final PreviewDialog dialog = createDialog( report );
final ReportController reportController = getReportController();
if ( reportController != null ) {
dialog.setReportController( reportController );
}
dialog.pack();
if ( dialog.getParent() != null ) {
RefineryUtilities.centerDialogInParent( dialog );
} else {
RefineryUtilities.centerFrameOnScreen( dialog );
}
dialog.setVisible( true );
return true;
}