Closed mlaggner closed 2 years ago
When I set HTML mode for everything (constructor) and I set an empty text (
setText("")
), ...
Maybe it works when you set it to an empty HTML text "<html></html>"
.
Have you tried whether this works in other Lafs? E.g. Metal, Windows, Nimbus...
just tried that on metal an
setText()
leads to the same behaviourlooks like this is no FlatLaf issue at all - just need to find a "good solution" which works :/ sorry for bothering you
I have a weird issue with a JTextPane and do not know why this happens.
My JTextPane is reusable and should switch between raw text and HTML (raw text for normal content and HTML if there are links in the content). When I switched to HTML (
setContentType("text/html")
) and want to switch back (setContentType("text/plain")
) the newlines in the JTextPane are gone:When I set HTML mode for everything (constructor) and I set an empty text (
setText("")
), all no more text is shown in this JTextPane until I restart my application:Do I miss anything here in my setup?