RFR: 5074006: Swing JOptionPane shows </html> tag as a string after newline [v2]
Jayathirth D V
jdv at openjdk.org
Thu Sep 15 06:49:48 UTC 2022
On Mon, 12 Sep 2022 11:47:36 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> 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:
>
> Fix handling HTML message
Marked as reviewed by jdv (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/10081
More information about the client-libs-dev
mailing list