https://bz.apache.org/ooo/show_bug.cgi?id=126752

--- Comment #1 from xuesuyu <[email protected]> ---
here is the code. 
public static void main(String[] args) {
        try {
            XComponentContext xContext;
            XMultiComponentFactory xMCF;
            xContext = Bootstrap.bootstrap();
            if (xContext == null) {
                System.err.println("ERROR: Could not bootstrap default
Office.");
            }
            xMCF = xContext.getServiceManager();
            Object oToolkit =
xMCF.createInstanceWithContext("com.sun.star.awt.Toolkit", xContext);
            XToolkit xToolkit = (XToolkit)
UnoRuntime.queryInterface(XToolkit.class, oToolkit);
            com.sun.star.awt.WindowDescriptor aWindowDescriptor = new
com.sun.star.awt.WindowDescriptor();
            aWindowDescriptor.Type = WindowClass.TOP; 
            aWindowDescriptor.Bounds = new Rectangle(200,200,800,600);
            aWindowDescriptor.WindowAttributes =WindowAttribute.MOVEABLE
|WindowAttribute.SIZEABLE |WindowAttribute.CLOSEABLE;
            XWindowPeer xWindowPeer = xToolkit.createWindow(aWindowDescriptor);
            XWindow xwindow = (XWindow)
UnoRuntime.queryInterface(XWindow.class, xWindowPeer);
            xwindow.setVisible(true);
        }
        catch (java.lang.Exception e){
            e.printStackTrace();
        }
        finally {
            System.exit( 0 );
        }
    }

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to