Adding images in JLabel, Using HTML tags.

I was trying to add multiple images in a JLabel, which was only possible by adding HTML code in label. Most of the HTML tag works very similar as web page, but image URL is quite different when we have to provide relative address for image tag. Example goes here:

import javax.swing.JFrame;
import javax.swing.JLabel;
/**
 *
 * @author Prashant
 */
public class MultiImage extends JFrame{
 JLabel lbl;
 public MultiImage()
 {
 this.setLayout(null);

 String str="<html><img src='file:images/emoticons/01.png'>" +
 "<font color='red' size='4'><b>Happy Life</b></font>" +
 "<img src='file:images/emoticons/01.png'></html>";
 lbl=new JLabel(str);
 lbl.setBounds(15, 10, 120, 25);
 this.add(lbl);
 setSize(150,150);
 setVisible(true);
 setResizable(false);
 this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
 }
 public static void main(String[] args) {
 new MultiImage();
 }
}

Output: