On Tue, 10 Oct 2023 03:50:11 GMT, Prasanta Sadhukhan <[email protected]>
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