Mega Code Archive
Show a message dialog with JOptionPane
import javax.swing.JOptionPane;
public class Main {
public static void main(String[] argv) {
JOptionPane.showMessageDialog(null, "The message", "The Title", JOptionPane.INFORMATION_MESSAGE);
}
}