// set the window attributes...
// The attribute CLIPCHILDREN causes the parent to not repaint the areas of the children...
aWindowDescriptor.WindowAttributes = VclWindowPeerAttribute.CLIPCHILDREN + WindowAttribute.BORDER + WindowAttribute.SHOW;
XWindowPeer xWindowPeer = xToolkit.createWindow(aWindowDescriptor);
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xWindowPeer);
XView xView = (XView) UnoRuntime.queryInterface(XView.class, xWindow);
// create a frame and initialize it with the created window...
Object oFrame = m_xMCF.createInstanceWithContext("com.sun.star.frame.Frame", m_xContext);
// The frame should be of global scope because it's within the responsibility to dispose it after usage
m_xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, oFrame);