public void saveFile(String fileName, String data) {
		if (data.length() == 0) {
			JOptionPane.showMessageDialog(responsibleWindow, "There was no data to save in file: " + fileName + ".");
			return;
		}
		
		File file = new File(fileName);
		try {
			FileWriter writer = new FileWriter(file);
			writer.write(data);
			writer.close();
		} catch (IOException ie) {
			JOptionPane.showMessageDialog(responsibleWindow, "There was a problem saving the file: " + fileName + ".");
		}
	}