Close windows

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
k50c
Posts: 3
Joined: Thu Dec 18, 2014 5:24 pm
antibot: No, of course not.

Close windows

Post by k50c » Thu Dec 18, 2014 5:52 pm

I'm using your project jfree; downloaded from this link: http://www.java2s.com/Code/JavaDownload ... .0-rc1.zip
I would like to know if there a way to avoid that when you click on the x to exit not until the execution of the whole program but only closes that window

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

Re: Close windows

Post by david.gilbert » Thu Dec 18, 2014 9:35 pm

Do you realise that you are downloading (from a third party site) a version of JFreeChart that will be 10 years old in less than two months from now?
David Gilbert
JFreeChart Project Leader

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

k50c
Posts: 3
Joined: Thu Dec 18, 2014 5:24 pm
antibot: No, of course not.

Re: Close windows

Post by k50c » Fri Dec 19, 2014 4:49 pm

in short, you know it or not how do I fix this?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Close windows

Post by John Matthews » Fri Dec 19, 2014 10:23 pm

It sounds like you're using multiple frames, as discussed here. As an alternative, consider JInternalFrame to manage your charts, shown here and here.

k50c
Posts: 3
Joined: Thu Dec 18, 2014 5:24 pm
antibot: No, of course not.

Re: Close windows

Post by k50c » Sat Dec 20, 2014 4:58 pm

thanks :) :)

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

Re: Close windows

Post by david.gilbert » Mon Dec 22, 2014 8:54 pm

k50c wrote:in short, you know it or not how do I fix this?
In short, read the Javadocs for the ApplicationFrame class that you are using:

http://www.jfree.org/jcommon/api/org/jf ... Frame.html
David Gilbert
JFreeChart Project Leader

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

Locked