I am developing Java desktop based application using Swing framework and JasperReports for reporting. I have some problems, when JasperVie
For setting the default extension(s) to save to, one idea is that you need to somehow get the JRViewer
instance from a JasperViewer
(instance) and then, on the void JRViewer
instance, you can set some save contributions. Have a look at JRViewer.setSaveContributors(JRSaveContributor[] saveContribs).
For setting the file name, i am not entirely sure, but have a look at JRViewer.JRViewer(String, boolean).
Also check the JRViewer and the JasperViewer source code, it may come in handy.