JDK-8214046 : [macosx] Undecorated Frame does not Iconify when set to
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11,12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2018-11-19
  • Updated: 2020-08-14
  • Resolved: 2019-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 8
11.0.6Fixed 8u251Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
Frame/ JFrame with option setUndecorated(true) and setState(Frame.ICONIFIED) does not iconify the window, hence window state event is not produced.

Platform specific: Yes, only on macos
Regression: No, issue exists on 11.0.1 also.
Issue is not observed on: jdk8u and jdk10.0.2/jdk10..0.1.

Attached Test code to reproduce the issue.


Comments
Fix request (11u) I want to downport this for parity with 11.0.6-oracle. I had to do a trivial resolve: http://cr.openjdk.java.net/~goetz/wr19/8214046-mac_iconify-jdk11/01/ http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-November/002110.html
15-11-2019

After we upgrade our compilers and sdk in the JDK 11, the method NSWindow#miniaturize which we use to iconify the frame stopped working. Now, this method pays attention to the NSMiniaturizableWindowMask flag, but we set this flag only for decorated windows(this is how we to hide the minimize button on the title).
15-04-2019