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