JDK-8350260 : Improve HTML instruction formatting in PassFailJFrame
  • Type: Bug
  • Component: client-libs
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-02-18
  • Updated: 2025-03-20
  • Resolved: 2025-02-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 24 JDK 25 JDK 8
11.0.28-oracleFixed 17.0.16-oracleFixed 21.0.8-oracleFixed 24.0.2Fixed 25 b11Fixed 8u461Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
When instructions are long, the formatting in PassFailJFrame looks off:

1. When the instructions are displayed on the screen, the HTML is scrolled to the bottom, which isn't convenient;
2. Numbers above 10 in the list are clipped on the left;
3. No border around the HTML text.

These problems were found while converting the instructions for test/jdk/javax/accessibility/TestJCheckBoxToggleAccessibility.java in code review [1][2] for JDK-8348936 and JDK-8345728.

[1] https://github.com/openjdk/jdk/pull/23436
[2] https://github.com/openjdk/jdk/pull/23436#discussion_r1953131477
Comments
Fix request [21u,17u] I backport this for parity with 21.0.8-oracle,17.0.16-oracle. No risk, only a test change. Clean backport. succesfully ran some tests using PFJF. SAP nightly testing passed.
20-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3379 Date: 2025-03-18 19:34:02 +0000
18-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1520 Date: 2025-03-18 19:32:46 +0000
18-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk24u/pull/99 Date: 2025-03-03 19:07:51 +0000
03-03-2025

Fix request for 24u This fix improves formatting of HTML test instructions in PassFailJFrame, manual test framework. Risk: Low
27-02-2025

Changeset: 014701a0 Branch: master Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2025-02-19 12:22:51 +0000 URL: https://git.openjdk.org/jdk/commit/014701a09b23d21f57edb5b085820532804475bd
19-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23674 Date: 2025-02-18 11:48:09 +0000
18-02-2025

I attached the screenshots demonstrating issues 1 and 2. The lack of the border is seen on both screenshots: the text is flushed left directly to the border of scroll pane. This is especially visible on the bold titles at the top (2nd screenshot): “Testing with…”.
18-02-2025