public void saveFields() {
		
		HashMap<String,String> allFields = new HashMap<String,String>();
		
		Field [] fields = this.getClass().getDeclaredFields();
		
		for (Field field : fields) {
			field.setAccessible(true);
			
			// Store Checkboxes as true or false
			if (field.getType() == JCheckBox.class) {
				try {
					allFields.put(field.getName(), ((JCheckBox)field.get(this)).isSelected() ? "true" : "false" );
				} catch (Exception e) {
					log.warning("Error reading field '"+field.getName()+"' : " + e.getMessage());
				}
			} else if (field.getType() == JTextField.class) {
				// Stores the text as-is
				
				try {
					allFields.put(field.getName(), ((JTextField)field.get(this)).getText());
				} catch (Exception e) {
					log.warning("Error reading field '"+field.getName()+"' : " + e.getMessage());
				}
			}
		}
		
		writeFieldsToFile(allFields);
	}