xNameCont.insertByName("PromptLabel", label);
xNameCont.insertByName("Ok", okButtonModel);
xNameCont.insertByName("Cancel", cancelButtonModel);
// create the dialog control and set the model
Object dialog = xMultiComponentFactory.createInstanceWithContext(
"com.sun.star.awt.UnoControlDialog", xComponentContext);
XControl xControl = (XControl) UnoRuntime.queryInterface(
XControl.class, dialog);
XControlModel xControlModel = (XControlModel)