dialog.setModel( xProperties );
// get a listener object (probably an adapter) that notifies
// the dialog of external changes to its model
XChangesListener xListener = dialog.createChangesListener( );
XChangesNotifier xNotifier =
(XChangesNotifier)UnoRuntime.queryInterface(XChangesNotifier.class, xViewRoot);
xNotifier.addChangesListener( xListener );