Figures-menu adaption for standalone applications

version (5.76 KB) by Alexander Mering
Create dockable figures for standalones and disable or remove menu items from the figures container


Updated 15 Nov 2012

View License

As pointed out by Yair Altman in his very popular blog (, accessing the java properties of a figure window allows for making figures being dockable even in standalone applications. Unfortunately, the figures container contains menu items (Plot Browser, Figure Palette and Property Editor) which directly lead to crashes of the whole application.

To overcome this shortcoming, a function is supplied which removes the problematic (or unwanted) menu entries from the figures container. This is achieved by using a property change listener for the docking state of the figure. For this purpose, a figure creation functions is used for setting the listener as well as all other properties of the figure.

Additionally, a short test case is provided.

Cite As

Alexander Mering (2022). Figures-menu adaption for standalone applications (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!