Sunday, May 16, 2010

HTML in JAVA component not working?

So I have a simple program with this bit of code which is not working:





private String aboutMessage = "%26lt;HTML%26gt;%26lt;BODY%26gt;ACTA is an XXXX application written in Java by:\n\n" + "%26lt;B%26gt;S%26lt;/B%26gt;hadow %26lt;B%26gt;C%26lt;/B%26gt;aster\n\n" + "It is released as free, public domain software (2008)%26lt;/BODY%26gt;%26lt;/HTML%26gt;";





JOptionPane.showMessageDialog(null, aboutMessage);





But the HTML formatting does not work. Why does this happen and how do I get it to work?

HTML in JAVA component not working?
JOptionPane is not made for renderize HTML.





You'll need to use other sources to put styles into your text.


http://www.javaguru.com

riding boots

No comments:

Post a Comment