Yes Norm, I think you're absolutely right - using JTextPane for the initial color processing avoids all the problems of trying to edit HTML text (e.g. avoiding replacing the contents of the HTML tags...
Type: Posts; User: dlorde
Yes Norm, I think you're absolutely right - using JTextPane for the initial color processing avoids all the problems of trying to edit HTML text (e.g. avoiding replacing the contents of the HTML tags...
This is possible to achieve with HTML in, for example a JLabel - you start the text with "<html>", then wrap each word with HTML to set its color, for example: "<html>The cat <font...