I guess you could just call endExecute instead.  It is provided by the XDialog
interface of your "dialog" object.

Cheers,

Jorge.

Quoting James Black <[EMAIL PROTECTED]>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I created a dialog, and I am able to get the information from the
> textfields.
> 
> Once the user clicks on the button though, I want to also close the dialog.
> 
> When I try this in the actionPerformed method:
>         XComponent xComponent =
> (XComponent)UnoRuntime.queryInterface(XComponent.class, dialog);
>         xComponent.dispose();
> 
> 
> Openoffice is also closed, and it tries to recovery my file when I
> restart it, though it didn't crash. It just closed unexpectedly I believe.
> 
> This is how dialog is defined:
>         dialog = xMultiComponentFactory.createInstanceWithContext(
>                 "com.sun.star.awt.UnoControlDialog", _xComponentContext);
> 
> 
> I also tried XControl instead of XComponent, same result.
> - --
> "Love is mutual self-giving that ends in self-recovery." Fulton Sheen
> James Black    [EMAIL PROTECTED]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFC55ToikQgpVn8xrARAjcDAJsGOTttcWMJRB1K7ccUZJHVW1h51gCdGaQy
> W+DUjS9vRaaW6oySmPPV+q4=
> =uYa8
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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

Reply via email to