Simple Swing frame for testing HTML in JLabel


/ Published in: Java
Save to your folder(s)

Note that there is limited support for _CSS_ in Swing components which render HTML text. This example employs `padding`, `margin` and `font-size`.

The full list of supported properties (and their limitations) are in the [Javadoc][1]


[1] http://download.oracle.com/javase/6/docs/api/javax/swing/text/html/CSS.html "CSS"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.