Please, I need your help. Could you tell me how to implement a SWT SaveAs Dialog in the next code? I need that user can choose where he wants to save the chart. Thanks!
try {
File file = new File("mychart.png");
float calidad = 1;
ChartUtilities.saveChartAsJPEG(file, calidad, chart, 800, 600);
MessageDialog.openInformation(shell, "Save Chart", "The file has been saved");
} catch (IOException e1) {
e1.printStackTrace();
MessageDialog.openInformation(shell, "Save Chart", "Error saving file. Please try again...");
}