RFR: 8367348: Enhance PassFailJFrame to support links in HTML
Weijun Wang
weijun at openjdk.org
Wed Sep 10 16:23:25 UTC 2025
Add HTML link processing ability in instructions. For example:
PassFailJFrame.builder()
.instructions(htmlWithLinks)
.addHyperlinkListener(e -> {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
performActionOnLink(e.getDescription());
}
})
-------------
Commit messages:
- the code change
Changes: https://git.openjdk.org/jdk/pull/27197/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27197&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8367348
Stats: 23 lines in 1 file changed: 21 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/27197.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27197/head:pull/27197
PR: https://git.openjdk.org/jdk/pull/27197
More information about the client-libs-dev
mailing list