<html><head>

<style id="css_styles"> 
blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] {  list-style-position: inside;}
body { font-family: Helvetica; font-size: 9pt; }
.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }

 </style>
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">We’re experiencing problems related JFrames while <a href="https://www.computerworld.com/article/3667999/what-is-apple-stage-manager-and-how-is-it-used.html">Stage Manager</a> is active Mac.<div><br /></div><div>When Stage Manager is active t<span>he yellow minimize button on our JFrame’s appears to “minimize” our app. But as far as our </span>Frame<span> is concerned:</span></div><div>1. Frame.getExtendedState() does not indicate we’re in an ICONIFIED state</div><div>2. Frame.isShowing() returns true</div><div>3. a java.awt.desktop.AppForegroundListener believes our app is in the foreground.</div><div><br /></div><div>We want to identify when we’re in this hidden state. Is there any other property we can consult to help identify this state?</div><div><br /></div><div>I’m happy to submit an openjdk ticket if needed, but first I wanted to sanity check that I’m not missing something. (I also tried <a href="https://bugs.openjdk.org/issues/?jql=text%20~%20%22%5C%22Stage%20Manager%5C%22%22">querying</a> the openJDK bug database, but didn’t see any hits.)</div><div><br /></div><div>I tried rummaging around in Mac-specific classes (like CPlatformWindow), but I didn’t see any promising leads. It’s always possible I missed something, though.</div><div><br /></div><div>Attached is a small 200-line demo app.</div></body></html>