JaroslavTulach commented on a change in pull request #403: [NETBEANS-320] Mac 
modal dialogs pop-under non-modal dialogs
URL: https://github.com/apache/incubator-netbeans/pull/403#discussion_r172566040
 
 

 ##########
 File path: 
progress.ui/src/org/netbeans/modules/progress/ui/StatusLineComponent.java
 ##########
 @@ -502,7 +503,18 @@ private void removeListItem(InternalHandle handle) {
         // 2. on mac, needs an owner frame otherwise hiding tooltip also hides 
the popup. (linux requires no owner frame to force heavyweight)
         // 3. the created window is not focusable window
         if (popupWindow == null) {
-            popupWindow = new 
JWindow(WindowManager.getDefault().getMainWindow());
+            class ProgressPopUpWindow extends JWindow implements Leafable{
+                ProgressPopUpWindow(Frame parent) {
+                    super(parent);
+                }
+                @Override
+                public boolean isLeaf() {
+                    //never a parent
+                    return true;
+                }
+            }
+            popupWindow = new ProgressPopUpWindow(WindowManager.getDefault().
+                    getMainWindow());
 
 Review comment:
   Can't the code get JDialog and just call 
[setUndecorated(true)](https://docs.oracle.com/javase/8/docs/api/java/awt/Dialog.html#setUndecorated-boolean-)?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to