public StringBuilder save() {
		StringBuilder data = new StringBuilder();
		
		data.append(totalText.getText().substring(0, totalText.getText().indexOf(' ')));
		for(int x = 0; x<swingTimes.length; x++) {
			data.append(";" + swingTimes[x]);
		}
		data.append(System.getProperty("line.separator"));
		
		int i = 0;
		if(maxDir != 0 && maxFrame != 0) {
			for(int x = 0; x<hitboxes.length / maxDir; x++) {
				for(int y = 0; y<hitboxes.length / maxFrame; y++) {
					data.append(hitboxes[i].x + ";" + hitboxes[i].y + ";" + hitboxes[i].width + ";" + hitboxes[i].height + ";");
					i++;
				}
				data.deleteCharAt(data.lastIndexOf(";"));
				data.append(System.getProperty("line.separator"));
			}
		}
		data.append("<BREAK>" + System.getProperty("line.separator"));
		
		return data;
	}