fillNode(xNode);
mXTreeDataModel.setRoot(xNode);
XControlModel xDialogModel = (XControlModel)
UnoRuntime.queryInterface(XControlModel.class,
mxMSF.createInstance("com.sun.star.awt.UnoControlDialogModel"));
XPropertySet xDialogPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xDialogModel);
xDialogPropertySet.setPropertyValue( "PositionX", new Integer(50) );
xDialogPropertySet.setPropertyValue( "PositionY", new Integer(50) );
xDialogPropertySet.setPropertyValue( "Width", new Integer(256) );
xDialogPropertySet.setPropertyValue( "Height", new Integer(256) );
xDialogPropertySet.setPropertyValue( "Title", "Tree Control Test");
XMultiServiceFactory xDialogMSF = (XMultiServiceFactory)
UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel);
XControlModel xTreeControlModel = (XControlModel)
UnoRuntime.queryInterface(XControlModel.class,
xDialogMSF.createInstance("com.sun.star.awt.tree.TreeControlModel"));
XPropertySet XTreeControlModelSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTreeControlModel);