<AWT Dev> RFR: 8267161 : Write automated test case for JDK-4479161 [v2]

lawrence.andrews github.com+87324768+lawrence-andrew at openjdk.java.net
Mon Aug 16 20:06:03 UTC 2021


On Mon, 16 Aug 2021 19:42:37 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> lawrence.andrews has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fixed the frame dispose with in EDT
>
> test/jdk/java/awt/im/4959409/bug4959409.java line 111:
> 
>> 109:             frame.setAlwaysOnTop(true);
>> 110:             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>> 111:             frame.setVisible(true);
> 
> A small suggestion is to move the frame to the center of the screen via frame.setLocationRelativeTo(null); before "frame.setVisible(true);"

Added frame.setLocationRelativeTo(null); & tested now I can see the frame is shown at the center of the screen.

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

PR: https://git.openjdk.java.net/jdk/pull/5058


More information about the awt-dev mailing list