public void loadFields() {
		HashMap<String,String> allFields = readFielldsFromFile();
		
		Field [] fields = this.getClass().getDeclaredFields();
		
		for (Field field : fields) {
			field.setAccessible(true);
			
			String name = field.getName();
			
			if (allFields.containsKey(name)) {
				
				if (field.getType() == JCheckBox.class) {
					try {
						((JCheckBox)field.get(this)).setSelected(allFields.get(name).equalsIgnoreCase("true"));						
					} catch (Exception e) {
						log.warning("Error setting the field '"+name+"' with the value: " + allFields.get(name));
					}
				} else if (field.getType() == JTextField.class) {
					try {
						((JTextField)field.get(this)).setText(allFields.get(name));						
					} catch (Exception e) {
						log.warning("Error setting the field '"+name+"' with the value: " + allFields.get(name));
					}
				}
			}
		}
	}