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

Alisen Chung achung at openjdk.org
Mon Oct 9 16:48:57 UTC 2023


On Thu, 5 Oct 2023 16:43:17 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....

Would it be better to check if the JFrame is "always on top" before making the JOptionPane also always on top?

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

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


More information about the client-libs-dev mailing list