int index = goPlotsTabbedPane.getSelectedIndex();
if (index == 1) {
// frequency plot
new ExportGraphicsDialog(peptideShakerGUI, peptideShakerGUI, true, (ChartPanel) goFrequencyPlotPanel.getComponent(0));
} else if (index == 2) {
// significance plot
new ExportGraphicsDialog(peptideShakerGUI, peptideShakerGUI, true, (ChartPanel) goSignificancePlotPanel.getComponent(0));
} else {
// protein table
// get the file to send the output to
final File selectedFile = peptideShakerGUI.getUserSelectedFile(".txt", "Tab separated text file (.txt)", "Export...", false);