Hi Mathias, Thanks for your response.
> I'm astonished to read that a "setFocus" call at either the > ContainerWindow or the ComponentWindow didn't work for you. At least > that's what OOo is doing in its own code when it wants to move the > focus to a document. Once the dialog is shown (using setVisible()), I've tried calling setFocus() on the document frame's ContainerWindow and ComponentWindow, obtained though calls to XSCRIPTCONTEXT.getDocument().getCurrentController().getFrame(), but to no avail. At first I thought it might be the wrong frame, but it seems there's not much other choice. > Perhaps you called it too early, before even your dialog got the focus > from the operating system? As I've said, the setFocus() call comes after the dialog is created and displayed. Is the dialog creation process somehow asynchronous? If so, you could be right that the setFocus() call comes too early. Would I need to set a focus listener or something like that to catch the "right" moment? Any further ideas appreciated :) Zbigniew Banach --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
