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.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to