Mathias Bauer skrev:
> Andreas Schneider wrote:
> 
>> So I have two questions: does OOo somehow provide a java.awt.Frame I can 
>> use as parent? If not: is there a (prefered) way I can manually lock OOo 
>> and implement its main loop? That way I could lock it, show the JDialog 
>> modal in its own thread and while the thread is alive process OOs main 
>> loop. When the thread ends, that loop is left, my code proceeds and OOo 
>> can regain control. (I hope you know what I mean, it's been a bit hard 
>> to describe).
> 
> I'm not aware of any wa to provide a java.awt.Frame but there is a
> "hack" that can help you: when you start your Java dialog also create a
> 1 pixel "big" dialog created by UNO AWT (with the parent of your
> choice). This will lock OOo's API sufficiently. Once your dialog is
> closed also close the "invisible" UNO AWT dialog.

I'm interested a bit in how to do this, are there any examples on the
net you can point to?


-- 
Christian Andersson - [EMAIL PROTECTED]

Configuration and Collaboration for OpenOffice.org
Open Framework Systems AS http://www.ofs.no

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

Reply via email to