private boolean saveProjectToFile(File selectedFile){
		try {
			String full = selectedFile.getAbsolutePath();
			String partial = full;
			int index =  full.lastIndexOf('.');
			int index2 =  full.lastIndexOf(File.separatorChar);
			if(index != -1 && index2 != -1 && index > index2){
				partial = full.substring(0,index);
			}
			if(project.getPaletteFileName() == null){
				project.setPaletteFileName( FileUtilities.generateRelativePath(selectedFile, new File(partial+".pal")));
			}
			if(project.getPatternTableFileName() == null){
				project.setPatternTableFileName( FileUtilities.generateRelativePath(selectedFile, new File(partial+".chr")));
			}
			if(project.getNameTableFileName() == null){
				project.setNameTableFileName( FileUtilities.generateRelativePath(selectedFile, new File(partial+".nam")));
			}
			if(project.getAnimationsFileName() == null){
				project.setAnimationsFileName( FileUtilities.generateRelativePath(selectedFile, new File(partial+".anim")));
			}
			project.storeFile(selectedFile);

			System.out.println("Saved Project:" + selectedFile.getAbsolutePath());
			System.out.println("\tPattern Table:" + project.getPatternTableFileName());
			System.out.println("\tPalette:" + project.getPaletteFileName());
			System.out.println("\tName Table (BG):" + project.getNameTableFileName());
			System.out.println("\t\tCompression Mode:" + project.getNameTableCompressionType());
			System.out.println("\tAnimations:" + project.getAnimationsFileName());

		} catch(Exception e){
			e.printStackTrace();
			return false;
		}
		return true;
	}