RFR: JDK-6690019: JOptionPane obscured behind an always on top JFrame hangs UI [v3]

Phil Race prr at openjdk.org
Tue Oct 10 21:15:27 UTC 2023


On Tue, 10 Oct 2023 03:50:11 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> A JOptionPane message dialog owned by a JFrame which is not always on top can be obscured behind an `"always on top" JFrame`. Since the option pane is modal, one can't move the "always on top frame" to reveal it, so the application effectively hangs as we cannot dismiss the option pane dialog
>> Fix is to make sure the option pane dialog is always on top....
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add test

This seems to me like an application bug.
Apart from a couple of special cases - Popup being one of them - we don't use this call internally in dialogs etc.
As much as possible determining the behaviours of these windows should be up to the app.
I think this should be closed as not a (JDK) bug.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16060#issuecomment-1756265973


More information about the client-libs-dev mailing list