Berend Cornelius wrote:

> Hi Nocolai,
> you may also just set the window of your dialog visible.
> xDialog = 
> xMultiServiceFactory.createInstance("com.sun.star.awt.UnoControlDialog");
> xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xDialog);
> xWindow.setVisible(true);
> 
> After that you have to capture your programm flow in a loop because it 
> doesn't stop like when you use the execute() method in a modal dialog.

Why should he create a loop? That's the most annoying thing in a modal
dialog, why would you want to do the same with a modeless one?

The better way is to keep a reference to the dialog and register a
listener at it. The listener will tell you when the dialog was closed
and the reference can be used to close the dialog when it is necessary
or wanted. This could be e.g. when the whole view is closed or when the
dialog has done its job.

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