public void actionPerformed(ActionEvent e) {
		if(panel.numCharts == 1) {
			JFreeChart chart = panel.createChart(panel.view[0],0);
			try {
				String savename = saveFile(new Frame(), "Save...", ".", "chart.png");
				if(savename != null) { // User hit cancel
					ChartUtilities.saveChartAsPNG(new File(savename), chart, 800, 600);
				}
			} catch (IOException e1) {
				e1.printStackTrace();
			}
		}
		else if(panel.numCharts == 2) {
			JFreeChart chart1 = panel.createChart(panel.view[1],1);
			try {
				String savename = saveFile(new Frame(), "Save Top Chart...", ".", "chart_top.png");
				if(savename!=null) {
					ChartUtilities.saveChartAsPNG(new File(savename), chart1, 800, 600);
				}
			} catch (IOException e1) {
				e1.printStackTrace();
			}


			JFreeChart chart2 = panel.createChart(panel.view[2],2);
			try {
				String savename = saveFile(new Frame(), "Save Bottom Chart...", ".", "chart_bottom.png");
				if(savename != null) {
					ChartUtilities.saveChartAsPNG(new File(savename), chart2, 800, 600);
				}
			} catch (IOException e1) {
				e1.printStackTrace();
			}
		}
	}