Integrated: 8367348: Enhance PassFailJFrame to support links in HTML

Weijun Wang weijun at openjdk.org
Wed Sep 10 17:29:00 UTC 2025


On Wed, 10 Sep 2025 16:17:58 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> Add HTML link processing ability in instructions. For example:
> 
> PassFailJFrame.builder()
>         .instructions(htmlWithLinks)
>         .addHyperlinkListener(e -> {
>             if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
>                 performActionOnLink(e.getDescription());
>             }
>         })
> 
> I also take this chance to make a CSS change for fix-width text to show a light-gray background color.

This pull request has now been integrated.

Changeset: 7a3025e3
Author:    Weijun Wang <weijun at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7a3025e3d7d33ed02db34c1485aa3c7b44b2d8ee
Stats:     23 lines in 1 file changed: 21 ins; 0 del; 2 mod

8367348: Enhance PassFailJFrame to support links in HTML

Reviewed-by: aivanov

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

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


More information about the client-libs-dev mailing list