Java tutorial
import javax.swing.JLabel; import javax.swing.JOptionPane; public class Main { public static void main(String[] args) throws Exception { JLabel label = new JLabel("<html><b><font size=+2>" + "<center>Hello!<br><i>Press me now!</html>"); JOptionPane.showMessageDialog(null, label); } }