JLink`
JLink`

SetField

SetField[obj@field,val]

sets a value of an object field.

Details

  • To use SetField, you first need to load J/Link using Needs["JLink`"].
  • SetField[obj@field,val] is an alternative syntax to obj@field=val.
  • For static methods, use SetField[staticfield,val]instead of staticfield=val.

See Also

Fields  JavaNew

Tutorials