import javax.swing.JFrame;
import javax.swing.JLabel;
public class MainClass {
public static void main(String[] a) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
String htmlLabel = "HTML Label
"
+ "Multi-line";
JLabel label = new JLabel(htmlLabel);
frame.add(label);
frame.setSize(300, 200);
frame.setVisible(true);
}
}