mvvmfx/src/main/java/de/saxsys/mvvmfx/internal/viewloader/ReflectionUtils.java
public static void setField(final Field field, Object target, Object value) {
		accessMember(field, () -> field.set(target, value),
				"Cannot set the field [" + field.getName() + "] of instance [" + target + "] to value [" + value + "]");
	}
public static void setField(final Field field, Object target, Object value) {
		accessMember(field, () -> field.set(target, value),
				"Cannot set the field [" + field.getName() + "] of instance [" + target + "] to value [" + value + "]");
	}
public static void setField ( final Field field , Object target , Object value ) { accessMember ( field , ( ) -> field . set ( target , value ) , "Cannot set the field [" + field . getName ( ) + "] of instance [" + target + "] to value [" + value + "]" ) ; }
This method can be used to set (private/public) fields to a given value by reflection. Handling of accessibility
and errors is encapsulated.

@param field
the field that's value should be set.
@param target
the instance of which the field will be set.
@param value
the new value that the field should be set to.
This method can be used to set ( private / public ) fields to a given value by reflection . Handling of accessibility and errors is encapsulated .