Christoph Lutz wrote:
> Hi,
> 
> in my own uno-component I use a JFrame-based dialog which I want to be
> modal. Therefore I want to lock the user-interaction (all gui-events?)
> on all background UNO-Frames temporary. How can I do that?
> 
> ...I know that I can create a modal dialog using the
> com.sun.star.awt.Toolkit, but I don't want to use it as I prefer swing
> for this special task.

I know that someone successfully used a trick to achieve modality: when
her started his Java dialog he created a 1 pixel sized modal dialog with
the OOo toolkit with the current OOo window as parent and moved it to
the upper left corner of the screen. This will create the desired modal
mode.

Seems that having an API for this would be a clever move.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.


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

Reply via email to