![gcf matlab 2017 gcf matlab 2017](https://www.mdpi.com/sensors/sensors-18-00783/article_deploy/html/images/sensors-18-00783-g009.png)
![gcf matlab 2017 gcf matlab 2017](https://slideplayer.com/12760086/78/images/slide_1.jpg)
Solutions that rely on documented Matlab features tend to compute the available screen size and resize the figure accordingly. Let us start with the pressing question of figure maximization: Several solutions have been presented to this problem over the years. I fail to understand why obscure features such as docking were added to the wrapper, but standard minimization and maximization were not. It is therefore difficult for me to understand why they were not added to the documented Matlab HG wrapper functionality a long time ago. Moreover, these operations are supported internally (and have been for many releases already), as shown below. This is very strange considering the fact that these are such elementary figure operations. Unfortunately, Matlab does not contain any documented or supported way to programmatically maximize, minimize or restore a figure window. Moreover, we may sometimes even wish to prevent users from resizing a maximized main window. However, we often need to create maximized main-application windows, and wish to save the users the need to manually maximize the window. Matlab figures can be maximized, minimized and restored by interactively clicking the corresponding icon (or menu item) on the figure window’s frame (the title bar). Today, I show how using JavaFrame we can solve a very frequent user request on the Matlab CSSM forum. Over the past couple of years, I posted several articles using the JavaFrame property of the figure handle, which enables access to the GUI’s underlying Java peer object.