Source Code : A JLabel that uses inline HTML to format its text
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
A JLabel that uses inline HTML to format its text

//A JLabel that uses inline HTML to format its text.
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class SwingHtmlLabel extends JPanel {
public static final String markup = "<html>line 1<p><font color=blue size=+2>"
+ "big blue</font> line 2<p>line 3</html>";
public static void main(String argv[]) {
JPanel p = new JPanel(new java.awt.GridLayout(0, 1));
p.add(new JLabel(markup));
p.add(new java.awt.Label(markup));
JFrame f = new JFrame("SwingHtmlLabel");
f.setContentPane(p);
f.setSize(600, 200);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
}
}
Thank with us