Hello , 

Thanks in advance for listening to me..
I have created an application in which i try to open a new Writer Document
with LoadComponentFromUrl.
My next steps are to get the 


XComponent document = loader.loadComponentFromURL (
                    "private:factory/swriter",          
                    "_blank",
                    0,         
                    loadProps); 
XComponent xCurrentComponent = xDesktop.getCurrentComponent()
XModel xModel = (XModel)
UnoRuntime.queryInterface(XModel.class,xCurrentComponent);
XController xController = xModel.getCurrentController();
XFrame xFrame = xController.getFrame();


my problem is that the LoadComponentFromUrl seems to delay and the rest
lines return NullPointerException...
How can i overcome this problem so that the LoadComponentFromUrl finishes
and then go on to the rest of the code??

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Java---LoadComponentFromUrl-tp20600458p20600458.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to