On Thu, 11 Jan 2024 04:48:23 GMT, Tejesh R <t...@openjdk.org> wrote:

> The issue is that the doc area (in respect to the screen height which is 
> 768px) which is at the bottom was causing the `JFileChooser `to be placed 
> slightly above the set location. Was able to reproduce in local machine with 
> reference to the failure image provided in the CI logs. The suggested fix is 
> to place the main Frame slightly above the center of the screen than setting 
> at the center of the screen. Several CI runs were made and no issue found.

test/jdk/javax/swing/JFileChooser/JFileChooserSetLocationTest.java line 217:

> 215:         int screenWidth = (int) screenSize.getWidth() / 2;
> 216:         int screenHeight = (int) screenSize.getHeight() / 2;
> 217:         frame = new JFrame();

Frame should have title.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/17364#discussion_r1448363735

Reply via email to