Java tutorial
import javax.swing.JButton; import javax.swing.JOptionPane; public class Main { public static void main(final String args[]) { String s = "<html><sup>HTML</sup> <sub><em>Button</em></sub><br>" + "<font color=\"#FF0080\"><u>Multi-line</u></font>"; JButton button = new JButton(s); JOptionPane.showMessageDialog(null, button); } }