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

   I noticed, that at least in some cases the class, that opens the dialog is 
itself an instance of `java.awt.Component`. In that case it could be passed to 
`JFileChooser#show*Dialog` and Swing would be responsible to find the right 
`JFrame` which should be the parent of the dialog. That relieves the need to 
fiddle with the main window or the keyboard focus or whatever and makes the 
code easier to follow. This should apply to `TemplatesPanel.java`, 
`LoadGeneratorCustomizer.java`, `LocationCustomizer.java` and 
`SnapshotCustomizer.java`.


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