JasperView closing the entire system

3

I do not know how to explain this, but I'll try.

I have a system made in JavaFx that displays reports with Jasper according to the selected item, so quietly selecting an item and sending print works, however when closing the report generated by JasperViewer, the whole system closes together and the strangest, with no error message.

Has anyone ever been through this?

    
asked by anonymous 12.05.2017 / 16:37

1 answer

4
The problem that is happening is that the method show() , of class JasperReportBuilder , by default it goes true in EXIT_ON_CLOSED , simply has to pass false to the method, class JasperReportBuilder has two show methods: show() and show(boolean exitOnClose) .

 JasperReportBuilder.class.newInstance.show(false);
    
15.05.2017 / 17:14