On Mon, 12 Sep 2022 11:47:36 GMT, Prasanta Sadhukhan <[email protected]> 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 Tested and verified. ------------- Marked as reviewed by tr (Author). PR: https://git.openjdk.org/jdk/pull/10081
