errael commented on code in PR #5280:
URL: https://github.com/apache/netbeans/pull/5280#discussion_r1083317140


##########
platform/openide.util.ui/src/org/openide/util/Utilities.java:
##########
@@ -1325,6 +1323,25 @@ private static Rectangle 
findCenterBounds(GraphicsConfiguration gconf, Dimension
         );
     }
 
+    /**
+     * Find the main NetBeans window; must have width or height.
+     * This is used locally to avoid dependency issues. 
+     * @return NetBeans' main window
+     */
+    private static Frame findMainWindow()
+    {
+        Frame f = null;
+        for( Frame f01 : Frame.getFrames() ) {
+            if( "NbMainWindow".equals(f01.getName())) { //NOI18N

Review Comment:
   @eirikbakke hope you enjoyed it ;-) I'm not overly familiar with all the 
issues involved, especially the innards of focus system (not to mention NBs 
module system), the details are more for me, and to give those who ask "why?" 
things to consider. But most of all, for someone to point out flaws in my 
assumptions/reasoning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to