Roman Rdgz
Roman Rdgz

Reputation: 13254

How to call print option of JFreeChart

I have an application with some JFreeCharts. When I right-click them, one of the default options is "Print", so I can print the chart in paper.

I want to replicate that option in my application main menu, File/Print, but I don't know what function of the chart does this, and when I try to look for this information in the JFreeChart Developer Guide, I get hundreds of System.PRINTln when searching.

Any help?

Upvotes: 2

Views: 2796

Answers (1)

GenericJon
GenericJon

Reputation: 8986

I believe that would be the createChartPrintJob() method within ChartPanel. (Or perhaps the print() method, depending on what you want to do.)

Details are here.

Upvotes: 3

Related Questions