On Mon, 16 Aug 2021 19:42:37 GMT, Sergey Bylokhov <s...@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