JasperViewer.viewReport(...)- This is a wrapper class that creates and displays JasperViewer JFramewith a panel JRViewer.
Using this method, you cannot access the base JFrame, so you cannot change the frame title.
JasperViewer, , setTitle(...).
- JDialog JRViewer.
:
final JRPrintServiceExporter exporter = new JRPrintServiceExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.TRUE);
exporter.exportReport();