Basically I want to call JasperViewer
from a button on my Main Application.
I use this
change like below. if you add false the default exit on close property becomes false.
private void btnExportActionPerformed(java.awt.event.ActionEvent evt) {
try {
JasperPrint printer = JasperFillManager.fillReport(getClass().getResourceAsStream("reportRecharge.jasper"), params, new JREmptyDataSource());
JasperViewer jv = new JasperViewer(printer,false);
jv.setVisible(true);
} catch (JRException ex) {
ex.printStackTrace();
}
}