Markus Plessing wrote:
Hello Roberto,

Roberto Battistoni schrieb:
I'm trying to add an OfficeBean to a  JInternalFrame, but Oo start in a
without-frame window in a full-screen mode, not in the JInternalFrame.
Why this?
[...]

The Java-Window has to provide a system window handle using a
java.awt.Canvas and some JNI-Methods. For further information see the
corresponding part of the DevGuide : 6.1.7 Java_Window_Integration
http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml

That's true ...
The implemented JNI-methods retrieves the system window handle from the java.awt.Canvas ... but they work only in case the java-windows was already shown. Otherwhise they are not able to return such window handle.

But if then the office is asked to create a new document window it get's 0 as parent instead of a valid window handle. And so it creates a window on the system desktop instead of creating a child window placed into the java environment.

Two solutions:
- make sure that your java window was shown before you create the office document

- wait for the fix inside the bean (which is currently in progress)

Regards
Andreas


Greetings

Markus


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

Reply via email to