RFR: JDK-6690019: JOptionPane obscured behind an always on top JFrame hangs UI [v3]
Andrey Turbanov
aturbanov at openjdk.org
Wed Oct 11 17:02:31 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
test/jdk/javax/swing/JOptionPane/TestJOptionPaneAlwaysOnTopBug.java line 95:
> 93: }
> 94:
> 95: private static void centreFrame(JFrame myFrame) {
Suggestion:
private static void centreFrame(JFrame myFrame) {
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16060#discussion_r1355382728
More information about the client-libs-dev
mailing list