Frame f = Application.current().getFrame();
f.setVisible(false);
=============================================
if frame has set the menu, when hide frame the menu is visible.
Frame f = Application.current().getFrame();
f.setMenu(null);
f.setVisible(false);
=============================================
thanks
This is a duplicate of #1863927 please close