RFR: 8296083: javax/swing/JTree/6263446/bug6263446.java fails intermittently on a VM [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Nov 14 06:56:21 UTC 2022


On Fri, 11 Nov 2022 21:32:42 GMT, Sergey Bylokhov <serb at 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



More information about the client-libs-dev mailing list