Publisher review:GetJFrame - Enable multiple window callbacks and properties not exposed by Matlab Syntax:jframe = getjframe(hFig)Description:GETJFRAME retrieves the current figure (gcf)'s underlying Java frame, thus enabling access to all 35 figure callbacks that are not exposed by Matlab's figure. Notable callbacks include: FocusGainedCallback, FocusLostCallback, KeyPressedCallback, KeyReleasedCallback, MouseEnteredCallback, MouseExitedCallback, MousePressedCallback, MouseReleasedCallback, WindowActivatedCallback, WindowClosedCallback, WindowClosingCallback, WindowOpenedCallback, WindowStateChangedCallback and 22 others.The returned jframe object also allows access to other useful window features: 'AlwaysOnTop', 'CloseOnEscapeEnabled', 'Resizable', 'Enabled', 'HWnd' (for those interested in Windows integration) etc. Type "get(jframe)" to see the full list of properties.GETJFRAME(hFig) retrieves a specific figure's underlying Java frame. hFig is a Matlab handle, or a list of handles (not necesarily figure handle(s) - the handles' containing figure is used).Examples:get(getjframe,'ListOfCallbacks'); %display list of supported callbacksset(getjframe,'WindowStateChangedCallback','disp(''Window min/maxed'')')set(getjframe,'WindowDeiconifiedCallback',@winMaximizedCallback)set(getjframe,'WindowIconifiedCallback',{@winMinimizedCallback,mydata})set(getjframe,'CloseOnEscapeEnabled','on')jframes = getjframe([gcf,hButton]); % get 2 java frames, from 2 figures Requirements: ยท MATLAB Release: R2007a
GetJFrame is a Matlab script for Development Tools scripts design by Yair Altman.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
GetJFrame - Enable multiple window callbacks and properties not exposed by Matlab
Operating system:Windows / Linux / Mac OS / BSD / Solaris