Supposedly you can do something like this: String Text = ("<Html>Hello I'm a Java-Html Label!" + "I can change my font, and underline " + "myself, supposedly, but i dont work " + "how come? how can i get myself to " + "work? "); JLabel Label = new JLabel(Text); Alas, this does not work, why?
I compile it, run it, and it shows me the literal version of the string. <Html> etc. It has the little boxe's for the tabs and such, it looks absolutely terrible. According to the Sun Java tutorial you can do this, exactly the way i showed ya. Thanx in advance, Martin
Heh, no. I'm not an html god, but i do know html. This is the full version of the program, you have a text area, you put in code click on a button and it changes the label to that html. Here is an example of some html i tried, and didnt work, and just showed me the literal version of it. String initialText = "<html>\n" + "Color and font test:\n" + "
\n" + "
red\n" + "
blue\n" + "
green\n" + "
italic\n" + "
bold\n" + "
\n"; Now, this should some some nice different-colred text, etc. but it shows trash. Why?