rkeen-siemens opened a new issue, #5987:
URL: https://github.com/apache/netbeans/issues/5987

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   `DialogDisplayerImpl.notify` sets the wrong parent when the currently active 
window is a modal dialog. When running with [FlatLaf providing window 
decorations](https://www.formdev.com/flatlaf/window-decorations/#enable_disable_linux)
 via `setDefaultLookAndFeelDecorated` on Linux, this allows the user to click 
the previously active modal dialog to bring it to the front due to 
[JDK-8306001](https://bugs.openjdk.org/browse/JDK-8306001).
   
   ### How to reproduce
   
   Start a platform application with the following run before creating any UI 
(e.g. in an override of `ModuleInstall.validate`):
   
   ```java
   JFrame.setDefaultLookAndFeelDecorated(true);
   JDialog.setDefaultLookAndFeelDecorated(true);
   ```
   
   Then from within an open model dialog invoke another using 
`DialogDisplayer.notify` and click the originally open dialog. This dialog will 
come to the front and if the new dialog is completely hidden there is nothing 
the user can do but kill the application.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Linux
   
   ### JDK
   
   JDK 17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans platform
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes


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