MATLAB: Uigetfile will make app be behind another windows.

app designerguiuigetfile

I use APP Designer to make a App figure. I want to load my file and display its nameļ¼Œso I use uigetfile. But used uigetfile will make my figure be behind another windows, I have to click it in Taskbar again. Why is this so?

Best Answer

add these lines after uigetfile
drawnow;
figure(app.UIFigure)
assuming your UIFigure's name is app.UIFigure