errael commented on PR #4739:
URL: https://github.com/apache/netbeans/pull/4739#issuecomment-1270770250

   I copied `FileChooserBuilder.findDialogParent()` into a standalone app. In 
practice it has much better characteristics than simply using the main window 
(at least in my tests using `JOptionPane(findDialogParent(),...)` from a 
dialog).
   
   I'm wondering if, for the last parent == null using MainWindow would be 
better than the last entry in the `Frame.getFrames()` array.
   
   I started to put `findDialgParent` as a static method into 
`DialogDisplayer`; then `ApiChange` came to mind. Before I make any changes, 
I'd like some comments on where to put it. Where to put it is more of an issue, 
effort wise, that what's in it.


-- 
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