public void saveAuto(Boolean yes){
		if(lt.getModified()){
			File f = fs.getCurrentFile();
			if(f != null && f.exists()){
				if(yes){
					System.out.println("Save this file: " + f.getAbsolutePath());
		  			save(f);
				}else{
					int response = JOptionPane.showConfirmDialog(this,
					          "The file " + f.getName() + 
					          " is modified. Do you want to save the changes?",
					          "Modified file", JOptionPane.YES_NO_OPTION,
					          JOptionPane.WARNING_MESSAGE);
				  		if (response == JOptionPane.YES_OPTION){
				  			System.out.println("Automatic: Save this file: " + f.getAbsolutePath());
				  			save(f);
				  		}
				}
	    	}
	    	else{
    			int response = JOptionPane.showConfirmDialog(this,
				          "The file doesn't exist. Do you want to save the new file?",
				          "New file", JOptionPane.YES_NO_OPTION,
				          JOptionPane.WARNING_MESSAGE);
			  		if (response == JOptionPane.YES_OPTION){
			  			System.out.println("Automatic: Save the new file!");
			  			saveAs();
			  		}
	    	}
		}
	}