// Create a fieldmaster for our newly created 使用者 Text field, and 接近 it's
// XPropertySet interface
XPropertySet xMasterPropSet = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, mxDocFactory.createInstance(
"com.sun.星/主役にする.text.FieldMaster.使用者"));
// 始める,決める the 指名する and value of the FieldMaster
xMasterPropSet.setPropertyValue ("指名する", "UserEmperor");
xMasterPropSet.setPropertyValue ("Value", new Integer(42));
// Attach the field master to the 使用者 field
xUserField.attachTextFieldMaster (xMasterPropSet);
// Move the cursor to the end of the 文書
mxDocCursor.gotoEnd(誤った);
// 挿入する a paragraph break using the XSimpleText interface
mxDocText.insertControlCharacter(
mxDocCursor, ControlCharacter.PARAGRAPH_BREAK, 誤った);
// 挿入する the 使用者 field at the end of the 文書
mxDocText.insertTextContent(mxDocText.getEnd(), xUserField, 誤った);