View Full Version : applets

07-09-2002, 02:41 AM
I was wondering if it's possible to use JFreeReport in applets.
If so, do you have any examples demonstrating the use of it in applets?
Thanks =)

I'm writing a report writer that's supposed to be accessible thru the web. Or would you recommend using it in a servlet/jsp rather than an applet?

Thanks again =)

07-09-2002, 03:47 AM

using JFreeReport in an applet should be ok, as long as you can cope with the Applet-security and as long as you make sure, that your clients have at least JDK1.3 installed.

But JFreeReport uses many libraries, so I don't know whether it is wise to let the user download the 1000? kbyte plus the code your applet needs plus the report data needed to print the report.

It would be faster to process the report on the server (faster connection to the database and no space/bandwith limitations) and to send the result to the client, either as Graphics2D (or saved as JPEG, PNG or any other pixel format) or as PDF.

When sending the report as pdf and when your servlet/jsp is smart enough, you can use AppletContext.showDocument() to show the pdf from within your applet using the platforms native pdf-viewer.

Have mor fun,
said Thomas