JDK-8214046 : [macosx] Undecorated Frame does not Iconify when set to
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,11,12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2018-11-19
  • Updated: 2023-08-07
  • 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 13 JDK 8 Other
11.0.6-oracleFixed 13 b21Fixed 8u251Fixed openjdk8u392Fixed
Related Reports
Duplicate :  
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 (8u). On behalf of Tobias Gesellchen. Oracle parity backport, change to AWTWindow.m is clean, modified test passes.
25-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/341 Date: 2023-07-14 19:36:56 +0000
18-07-2023

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

URL: http://hg.openjdk.java.net/jdk/jdk/rev/769dbf384c44 User: psadhukhan Date: 2019-05-15 09:11:03 +0000
15-05-2019

URL: http://hg.openjdk.java.net/jdk/client/rev/769dbf384c44 User: serb Date: 2019-04-26 05:19:45 +0000
26-04-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