If I have a Java dialog box open and I select Show Desktop from my "quick launch" menu, my dialog box disappears. If I maximize MATLAB from the taskbar MATLAB reappears but the Java dialog box does not and the dialog box does not have an icon on the taskbar.
To reproduce, create a timer function which will produce a Java based modal question dialog box and set it to initiate in five or ten seconds.
start(timer('StartDelay',5,'TimerFcn','questdlg(''timer question'');',... 'StopFcn','delete(timerfind(''Name'',''testtimer''))',... 'Name','testtimer'));
Before the timer function initiates, open a uigetfile dialog with the following command:
uigetfile('','modal blocker');
Now wait for the timer function questdlg prompt to appear.
Click on "show desktop" from the "quick launch" menu. Maximize MATLAB.
Best Answer