Andrzej Wytyczak-Partyka wrote:

    Hello Andrzej !


    OK ... you are right ... I've overlooked something important. It cant
    work so. Why ?
    You created a new frame and the document will be loaded later into this
    frame. Of course without a document inside you cant retrieve nor create
    menubars or toolbars. So you have do it later. But how ?

    I think, you should listen on the frame you created new as
    css.frame.XFrameActionListener. There is an event
    frameAction(...COMPONENT_ATTACHED...). That indicates the fact, that a
    new document was loaded into this frame. After the first
    COMPONENT_ATTACHED event was send to you, you can deregister yourself.
    Because you dont need to listen for further events here / I hope .-)


OK, so when my listener receives the COMPONENT_ATTACHED event I should then try to get the UIElement from the LayoutManager and deregister the listener, correct ?

Yes.

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

Reply via email to