[jdk25u-dev] RFR: 8367772: Refactor createUI in PassFailJFrame

Roland Mesde duke at openjdk.org
Thu Feb 12 19:45:33 UTC 2026


Backporting JDK-8367772: Refactor createUI in PassFailJFrame.

This PR refactors PassFailJFrame UI creation to use Builder pattern internally, eliminating parameter proliferation and code duplication.

For parity with Oracle JDK.

Ran a manual test that uses the PassFailJFrame on macos-aarch64:

~/github/jtreg/build/images/jtreg/bin/jtreg -jdk build/macosx-aarch64-server-release/images/jdk -m test/jdk/java/awt/Dialog/ModalDialogTest/ModalDialogTest.java

ScreenShots:

<img width="1440" height="513" alt="ModalDialogTest1" src="https://github.com/user-attachments/assets/fca925f3-f7b3-4366-a909-436f3e40315d" />
<img width="1432" height="624" alt="ModalDialogTest2" src="https://github.com/user-attachments/assets/0bb5c1f0-c7ec-41a1-9bec-dc80c78dcb57" />

Results:

[summary.txt](https://github.com/user-attachments/files/25271647/summary.txt)

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

Commit messages:
 - Backport d278043ddba0cd9ec3ddf8b490366965f5831a22

Changes: https://git.openjdk.org/jdk25u-dev/pull/250/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=250&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8367772
  Stats: 55 lines in 1 file changed: 8 ins; 33 del; 14 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/250.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/250/head:pull/250

PR: https://git.openjdk.org/jdk25u-dev/pull/250


More information about the jdk-updates-dev mailing list