RFR: 8295804: javax/swing/JFileChooser/JFileChooserSetLocationTest.java failed with "setLocation() is not working properly"

Tejesh R tr at openjdk.org
Thu Jan 11 04:54:40 UTC 2024


The issue is that the doc area (in respect to the screen width 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.

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

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jdk/pull/17364/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17364&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295804
  Stats: 9 lines in 1 file changed: 6 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/17364.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17364/head:pull/17364

PR: https://git.openjdk.org/jdk/pull/17364


More information about the client-libs-dev mailing list