if (currentDataPane != null) {
if (currentDataPane.isModified()) {
if (JOptionPane.showConfirmDialog(null, "Do you want to save your current modification in '" + currentDataPane.getCurrentCSVFile() + "?'",
"Save confirmation", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
currentDataPane.save();
}
}
currentDataPane = null;
}
editorTabbedPane.removeTabAt(0);