On Fri, 11 Nov 2022 21:32:42 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> WHich platform it is shifted? > > I guess on any, I have tested on windows, and now on macOS. Add these lines > to the end of method, and check how the frame will jump to the center: > > frame.setLocationRelativeTo(null); > frame.pack(); > frame.setVisible(true); > + robot.delay(3000); > + frame.dispose(); > + frame.pack(); > + frame.setLocationRelativeTo(null); > + frame.setVisible(true); OK. Test updated (although I dont think it would have mattered in this specific case for such a small JTree widget as can be seen from my testing CI jobs in all platforms).. ------------- PR: https://git.openjdk.org/jdk/pull/11057