<AWT Dev> RFR: 8267161 : Write automated test case for JDK-4479161 [v2]
Sergey Bylokhov
serb at openjdk.java.net
Mon Aug 16 19:45:26 UTC 2021
On Thu, 12 Aug 2021 15:46:43 GMT, lawrence.andrews <github.com+87324768+lawrence-andrew at openjdk.org> wrote:
>> 1) Automated the manual test case.
>> 2) Removed html dependent file
>> 3) Removed javax.swing.JApplet dependent.
>> 4) Test case can be executed independently as well with jtreg framework.
>> 5) Added methods to know that JFrame and Other component is visible before starting the user action via Robot.
>>
>> @shurymury
>
> 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);"
-------------
PR: https://git.openjdk.java.net/jdk/pull/5058
More information about the awt-dev
mailing list