Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }
}