Save JPanel with multiple charts as jpeg

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
abfc`
Posts: 1
Joined: Sun May 02, 2010 9:59 am
antibot: No, of course not.

Save JPanel with multiple charts as jpeg

Post by abfc` » Sun May 02, 2010 10:08 am

I have a JPanel with multiple charts added to it and would like to save it in a similar way that I use
ChartUtilities.saveChartAsJPEG to save individual charts.

Thank you kindly for any assistance you could offer.

gengar
Posts: 26
Joined: Thu Mar 18, 2010 12:28 am
antibot: No, of course not.

Re: Save JPanel with multiple charts as jpeg

Post by gengar » Tue May 04, 2010 1:29 am

I have posted a solution earlier here:
http://www.jfree.org/phpBB2/viewtopic.p ... 705#p82705

What you need to do after is to write the buffered image to a file.

Locked