[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-sound-dev
Subject: Re: RFR: 5074006: Swing JOptionPane shows </html> tag as a string after newline [v4]
From: Prasanta Sadhukhan <psadhukhan () openjdk ! org>
Date: 2022-10-31 10:09:19
Message-ID: 2ey8FsxjSLC7AjcpYExWnXf-en6Lz001e5k7Am3fbFM=.e19a71e8-0101-43e9-a58d-ec00ee9890c4 () github ! com
[Download RAW message or body]
> If JOptionPane's message contains both linefeed/cursor return and HTML tag ie, \
> **<html\>" + "This is a test\n" + "</html\>**, then "</html\>" will be shown in \
> the JOptionPane dialog box because after every new line it creates a new \
> messageComponent so the characters after the newline ie "</html\>"tag will be \
> considered as a new JLabel string and displayed.
> Fix is to ignore closing html tag if appearing after newline from the displayed \
> string.
Prasanta Sadhukhan has updated the pull request incrementally with one additional \
commit since the last revision:
Add comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/10081/files
- new: https://git.openjdk.org/jdk/pull/10081/files/c6901154..00a7ddfe
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=02-03
Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
Patch: https://git.openjdk.org/jdk/pull/10081.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10081/head:pull/10081
PR: https://git.openjdk.org/jdk/pull/10081
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic