XPackageInformationProvider pip = PackageInformationProvider.get(context);
String s = pip.getPackageLocation("com.example.TaskPaneComponent");
String dialogUrl = s + "/toolpanels/" + getPanelResourceLocation() + ".xdl";
XContainerWindowProvider provider = UnoRuntime.queryInterface(
XContainerWindowProvider.class,
context.getServiceManager().createInstanceWithContext("com.sun.star.awt.ContainerWindowProvider",context)
);
m_panelRootWindow = provider.createContainerWindow(
dialogUrl,
"",
UnoRuntime.queryInterface( XWindowPeer.class, m_parentWindow ),
null
);