Java tutorial
import javax.swing.JLabel; import javax.swing.JOptionPane; public class Main { public static void main(String[] args) { JLabel label = new JLabel("<html>Line<br>line<br>line</html>", JLabel.LEFT); JOptionPane.showMessageDialog(null, label); } }