On Tue, 1 Jun 2021 11:31:59 GMT, Alexander Zvegintsev <azveg...@openjdk.org> wrote:
>> Maxim Kartashev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Changed the check for the XFramePeer target being >> javax.swing.RootPaneContainer in >> order to avoid unnecessary class loading if it isn't. >> >> Also updated the test such that robot.createScreenCapture() is not >> executed on EDT. > > test/jdk/java/awt/Window/WindowTitleVisibleTest/WindowTitleVisibleTestLinuxGnome.java > line 111: > >> 109: private void captureTitleBarNotVisible() { >> 110: runSwing( () -> { >> 111: titleBarImageNotVisible = >> robot.createScreenCapture(titleBarBounds); > > `createScreenCapture` does not require to be called on EDT. Thanks! Moved `createScreenCapture()` out of EDT. Please, have a look at the updated code. ------------- PR: https://git.openjdk.java.net/jdk/pull/4113