if (selectedFile.exists())
{
int result = JOptionPane.showConfirmDialog(thisItem, "File Already Exists!\n Would you like to overwrite it?", "Warning", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
if (JOptionPane.YES_OPTION == result)
{
FileSaver fileSaver = new FileSaver(testStr, selectedFile);
done = true;
JOptionPane.showMessageDialog(thisItem, "File Saved!", "File Writer", JOptionPane.INFORMATION_MESSAGE);
}
}
else
{
FileSaver fileSaver = new FileSaver(testStr, selectedFile);
done = true;
JOptionPane.showMessageDialog(thisItem, "File Saved!", "File Writer", JOptionPane.INFORMATION_MESSAGE);
}
}
else