using CSS to format HTML in a Java - JLabel
Hi peoples.
I am trying to add an extra bit of flair to a java project I am doing. the project requires I output a load of text from a database to a label or text field. I have sorted out using HTML code in the JLabel component (wassn't hard) But.... I cant figure out how to use CSS to format the HTML code. I have tried by way of the <link> tag in the header (the usual way i do it in actual webpages) I have also tried using the embedded <style><!--... --></style> tags. but i have had no luck.
Is it possible to use CSS to mark up this type of HTML or does Java not actually parse the CSS code???
any help appreciated
cheers,
Ben.
|