Java applications don't get WindowStateListener.windowStateChanged event when user is doing maximize/unmaximize of the window/frame
Steps to Reproduce:
1. Unzip attched MacMaximize.zip NetBeans project and run MacMaximize.jar in /dist subdirectory
2. App frame is opened; minimize it, restore it and watch how the logs are written into console. So far so good.
3. Now maximize and restore -> no logs written and no text changes visible, because application don't get windowStateChanged event, but it should.
Note that on Windows everything works OK.