Fhomasp wrote:
Hey,

I implemented a custom menu item using one of the examples.  However this
extra menu item disappears as soon as a printpreview screen is invoked.  The
menu item doesn't return when the printpreview is closed.

Here's the code I used
Hi Fhomasp,

You use non-persistent changes for the menu bar. The print preview function uses a different controller implementation and therefore the user interface elements are reinitialized, means destroyed and created. That's why your changes get lost. You have to add a FrameActionListener to the frame and redo your changes whenever your receive a FRAMEACTION_ATTACHED, FRAMEACTION_REATTACHED notification.

Regards,
Carsten

--
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to