How to Write HTML on JTextPane in Java Netbeans

preview_player
Показать описание
Write HTML on JTextPane.
Рекомендации по теме
Комментарии
Автор

Cool
how read file.html and setText jtextpane ?

Kaly
Автор

Cool
I can modify your code to write 'hello world ' in different colors
color='blue'>Hello World </font><font color='red'>Hello World </font><font color='green'>Hello World </font></body></html>");
but ideally what I am trying to do is read a file into an array and print the character array where different letters have different colors.
Is there a way of doing it without having to create a HTML document first?

topazwasp
join shbcf.ru