I tried using the sample code:
jFig = get(handle(hFig), 'JavaFrame');
jAxis = jFig.getAxisComponent;
set(jAxis, 'MinimizedCallback', {@myMatlabFunc, hFig});
However: I am unable to find the callback that detects when the main figure window has been minimized. Can you give me a snippet of sample code that does this. I would like to add some type of listener that detects when the main figure has been minimized or a callback function. I've used Yair's findjobj function but have been able to determine what the callback is.
Any help is appreciated.