Although I am a beginner in java, I am trying to plot some data I have using JMathPlot. Every thing went well, but the script didn't terminate after I closed the window of the plot.
Could any body tells me how to force the script to terminate when I close the window of the plot.
I use a debian machine(32-bit), IDE = eclipse, java-version = 1,6 and here is the code I'm using for plotting:
    Plot2DPanel plot = new Plot2DPanel();
    plot.addLinePlot("test", x, y);
    JFrame frame = new JFrame("A test panel");
    frame.setContentPane(plot);
    frame.setVisible(true);
Thank you in advance
 
     
     
    