MATLAB: Figure menu when resizing

figure resize menu

When I resize a figure and make it smaller the menu is compressed and is not readable. This behavior is different in an older Matlab version (2006) when the menu is displayed on 2 rows when the figure size is too small. How can I get the old behavior in the new(er) Matlab?
Thanks!

Best Answer

This is covered in section 5.2.1 of my Matlab-Java book:
jFrame = get(handle(gcf), 'JavaFrame')
try
jMenuBar = jFrame.fHG1Client.getMenuBar;
catch
jMenuBar = jFrame.fFigureClient.getMenuBar; % R2007b and earlier
end
jMenuBar.setMoreMenuEnabled(true);
Yair Altman