MATLAB: Problem with maximizing figure window in MATLAB 2016a

2016a resize figuresMATLAB

After maximizing figure in MATLAB 2016a on my Linux machine, the figure window behaves weirdly. Mouse actions happen somewhere other than where they are intended to. Any idea? Attaching are the examples: zooming-in and selecting options.

Best Answer

As I mentioned in the comment, the problem is that some versions of java don't play well along gtk. in my case using the system java instead of the default java that comes with Matlab solves the issue. to start from the terminal you can use a command specified in the previous comment, otherwise you can modify the matlab.desktop file, by changing the exec line to the following
Exec=env MATLAB_JAVA=/usr/lib/jvm/java-7-openjdk/jre matlab -desktop
Related Question