Hi Tobias,

> this is my last day working for my current company and I'm hanging on
> following thing: I have to write one more UNO package. In this
> component, I need to get the current XComponent. I asked the question
> how to get the current XComponent out of an XFrame last march and got
> following answer:
> -----%<-----
> XComponent xComponent = (XComponent)
>       UnoRuntime.queryInterface(XComponent.class, xFrame);
> -----%<-----

Depending on what you mean with "current component", i.e. what you want
to do with it - shouldn't you ask the frame for its controller
(XFrame.getController()), and perhaps the controller for its model?

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Database                   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

Reply via email to