Exiting jfreechart follows exiting application

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jerry
Posts: 2
Joined: Fri Apr 21, 2006 10:47 am
Location: Latvia

Exiting jfreechart follows exiting application

Post by Jerry » Fri Apr 21, 2006 11:34 am

I'm creating jfreechart object and on WindowEvent.WINDOW_CLOSING (when I'm closing this Chart form) or smthn it closes not only chart form, but whole application. Problems might be in parent class ApplicationFrame. But I'm not sure and haven't solved this problem yet.

Help, please.
In the begining God created the heaven and the earth

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Apr 25, 2006 4:12 pm

ApplicationFrame does exit the JVM on exit, as intended. If you don't want that behaviour, use the ChartPanel class to add charts to your own JFrame instances.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked