public void save(String fileName,boolean rewrite){
			try{
				File outFile = new File(fileName);
				if(outFile.exists()&&rewrite){
					if(JOptionPane.showConfirmDialog(null, "File already exists. Rewrite it?","File exits",JOptionPane.YES_NO_OPTION)==JOptionPane.NO_OPTION)
						return;
				}
				FileWriter fw = new FileWriter(outFile);
				fw.write(String.valueOf(shapeList.size())+"\n");
				for(TextBox t:shapeList){
					fw.write(t.saveData()+"\n");
				}
				fw.close();
			}catch(Exception ex){
				ex.printStackTrace();
			}
		}