[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    RFR: 5074006: Swing JOptionPane shows </html> tag as a string after newline
From:       Prasanta Sadhukhan <psadhukhan () openjdk ! org>
Date:       2022-08-30 12:46:47
Message-ID: DWhqieaffzn6xk--zvJwqX4LVNFtVnuI-5rnfuFGTL0=.55ec4218-3188-4917-9233-cbce1562f3e2 () github ! com
[Download RAW message or body]

If JOptionPane's message content both linefeed/cursor return and HTML tag, "</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.

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

Commit messages:
 - Fix
 - 5074006: Swing JOptionPane shows <html> tag as a string after newline

Changes: https://git.openjdk.org/jdk/pull/10081/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-5074006
  Stats: 74 lines in 2 files changed: 71 ins; 0 del; 3 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