private void exportSpectrumGraphicsJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportSpectrumGraphicsJMenuItemActionPerformed
int selectedTabIndex = allTabsJTabbedPane.getSelectedIndex();
if (selectedTabIndex == OVER_VIEW_TAB_INDEX) {
new ExportGraphicsDialog(this, this, true, (Component) overviewPanel.getSpectrum());
} else if (selectedTabIndex == SPECTRUM_ID_TAB_INDEX) {
new ExportGraphicsDialog(this, this, true, (Component) spectrumIdentificationPanel.getSpectrum());
} else if (selectedTabIndex == MODIFICATIONS_TAB_INDEX) {
new ExportGraphicsDialog(this, this, true, (Component) ptmPanel.getSpectrum());
}
}//GEN-LAST:event_exportSpectrumGraphicsJMenuItemActionPerformed